Path: utzoo!attcan!uunet!lll-winken!uwm.edu!rpi!crdgw1!montnaro From: montnaro@spyder.crd.ge.com (Skip Montanaro) Newsgroups: comp.windows.x Subject: Getting a list of a widgets resources at run-time? Message-ID: Date: 27 Jul 90 18:43:46 GMT Sender: news@crdgw1.crd.ge.com Reply-To: montanaro@crdgw1.ge.com (Skip Montanaro) Organization: GE Corporate Research & Development, Schenectady, NY Lines: 24 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. For instance, I'd like to be able to type the following short script at the interpreter to jog my memory about what resources I can set or get. motif_button new: b; b print: resources?; Functionality similar to this would be useful for error detection also: b @ "some-resource" grok?; At the C level is there a way to get a list of resources a widget understands at run-time, or query a widget to see if it knows about a specific resource? Thx, -- Skip (montanaro@crdgw1.ge.com)