[comp.windows.x.motif] Question regarding XtGetResourceList & XtGetConstraintResourceList

montnaro@spyder.crd.ge.com (Skip Montanaro) (05/08/91)

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)