Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!lta.com!david From: david@lta.com (David B. Lewis) Newsgroups: comp.windows.x.motif Subject: WidgetList Message-ID: <9102282218.AA03204@lta.com> Date: 28 Feb 91 22:18:33 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 22 |> 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