Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!newstop!exodus!argv From: argv@turnpike.Eng.Sun.COM (Dan Heller) Newsgroups: comp.windows.x.motif Subject: Re: Determining children widget IDs Message-ID: <5062@exodus.Eng.Sun.COM> Date: 29 Dec 90 22:36:27 GMT References: <20.277b089c@idicl1.idi.battelle.org> Sender: news@exodus.Eng.Sun.COM Organization: O'Reilly && Associates Lines: 21 In article <20.277b089c@idicl1.idi.battelle.org> grywalski@idicl1.idi.battelle.org writes: > There may be a simple answer to this question but I have consulted > the FAQ and all the doc that I can get my hands on and have not been able to > find it. What is the best way to obtain a list of all the children of a widget > like the Motif RowColumn widget? Widget *children; int num_children, i; XtVaGetValues(row_col, XtNchildren, &children, XtNnumChildren, &num_children, NULL); for (i = 0; i < num_children; i++) printf("Child #%d: %s\n", XtName(children[i])); -- dan ---------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com Opinions expressed reflect those of the author only.