david@lta.com (David B. Lewis) (03/01/91)
|> I would like to have a resource of my widget be of type |> WidgetList. I can have a resource typed to Widget, but |> apparently not WidgetList. Is there anyway to be |> able to XtSetArg a resource to a list of widgets? Sounds reasonable; look at the type of XtNchildren in Composite.c. {XtNchildren, XtCReadOnly, XtRWidgetList, sizeof(WidgetList), XtOffset(CompositeWidget, composite.children), XtRImmediate, NULL}, where the corresponding data field is WidgetList children; /* array of ALL widget children */ A WidgetList is just a pointer to a Widget; in a pinch, you can use a generic pointer type. This should be settable in the same way as XmNitems in a List, also an array. -- David B. Lewis Lewis, Trachtenberg & Associates (LTA) Note new address!: david@lta.com +1 617 225 0366