Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.cv.hp.com (Bill Turner) Newsgroups: comp.windows.x.motif Subject: Re: Way to get list of form's children? Message-ID: <110630044@hpcvlx.cv.hp.com> Date: 3 May 91 17:07:46 GMT References: <550@shrike.AUSTIN.LOCKHEED.COM> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 14 > WidgetList ch; > Cardinal ch_count; > > XtVaGetValues(form, XmNchildren, &ch, XmNchildCount, &ch_count, NULL); > >Note that `ch' is read-only. Also be forwarned that some of the children of manager widgets are not "real" objects. If you are going to be doing things to the children returned, check XtIsObject(ch[n]) before doing anything to it. If it isn't an object, then don't use it. --Bill Turner (bturner@hp-pcd.cv.hp.com) HP Interface Technology Operation