Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!b61512!idiws1!idi!grywalski From: grywalski@idicl1.idi.battelle.org Newsgroups: comp.windows.x.motif Subject: Re: Determining children widget IDs (Summary) Message-ID: <21.277e1314@idicl1.idi.battelle.org> Date: 30 Dec 90 21:17:24 GMT References: <20.277b089c@idicl1.idi.battelle.org> Organization: IDI-Dublin Lines: 32 In article <20.277b089c@idicl1.idi.battelle.org>, grywalski@idicl1.idi.battelle.org writes: > find it. What is the best way to obtain a list of all the children of a widget > like the Motif RowColumn widget? Thanks to everyone who replied to my question. I received many replies suggesting I do a XtGetValues on the XmNchildren, and XmNnumChildren resources of the composite widget class. Unfortunately I have Motif 1.0 which is still under R3. The *children resources were introduced with R4. Until I get Motif 1.1 it was suggested that I "cheat a little" and do the following: (Which seems to work fine by the way...) #include #include #include #include WidgetList GetChildren(w) CompositeWidget w; { return w->composite.children; } int GetNumChildren(w) CompositeWidget w; { return w->composite.num_children; } -- * Roger Grywalski - Software Developer | GRYWALSKI@IDICL1.IDI.BATTELLE.ORG * Information Dimensions Inc. | * 655 Metro Place South | * Dublin, Ohio 43017 |