Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: Getting a list of a widgets resources at run-time? Message-ID: <772@auto-trol.UUCP> Date: 30 Jul 90 14:55:10 GMT References: Reply-To: marbru@auto-trol.com (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 24 In article montanaro@crdgw1.ge.com (Skip Montanaro) writes: > >We use a locally developed interpretive object-oriented system called LYMB. >LYMB has classes that interface to both the HP and MOTIF widgets. On more >than a few occasions, it would be useful to ask an object for a list of the >X resources it understands. Depends great deal how "correct" you want to be. Each widget class has a pointer to resource list. You can look it up (note, it may be "compiled" into quarks). Similarly, you can find constraint resources. This, however, does NOT address any "sub resources", such as those used by R3 Athena Text widget, there is no formal way to find any of those. Another problem are enumerated data types (and/or defines). Ususally, it does not do me any good to find that resource has a value of 3 unless I know that 3 means something like "resize policy grow". Resource lists could have had a pointer to a "values table", which could have been used by a universal resource converter - but it's not there .... -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404