Xref: utzoo comp.windows.x:36176 comp.windows.x.motif:2833 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!spool.mu.edu!uunet!crdgw1!montnaro From: montnaro@spyder.crd.ge.com (Skip Montanaro) Newsgroups: comp.windows.x,comp.windows.x.motif Subject: Question regarding XtGetResourceList & XtGetConstraintResourceList Message-ID: Date: 8 May 91 13:59:31 GMT Sender: news@crdgw1.crd.ge.com Reply-To: montanaro@crdgw1.ge.com (Skip Montanaro) Followup-To: comp.windows.x Organization: GE Corporate Research & Development, Schenectady, NY Lines: 23 I have the following code in an application: XtGetResourceList(XtClass(instance->id), &resources, &count); where instance->id is of type Widget, resources is of type XtResourceList, and count is of type Cardinal. The function always returns the widget-specific data back, as opposed to the class-specific data. How does XtGetResourceList know what the widget id is, since it's getting a WidgetClass as input, not a Widget? I have a similar call to XtGetConstraintResourceList: XtGetConstraintResourceList(XtClass(instance->id), &resources, &count); It always sets resources to NULL, even if the widget specified by instance->id is a child of an XmForm widget. Am I calling it incorrectly? Thx, -- Skip (montanaro@crdgw1.ge.com)