Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!decwrl!asente From: asente@decwrl.dec.com (Paul Asente) Newsgroups: comp.windows.x Subject: Re: Getting ID for widget loaded from .uid? (Motif) Message-ID: <2427@bacchus.dec.com> Date: 10 Jan 90 19:09:17 GMT References: <223@uucs1.UUCP> <1990Jan10.172318.20172@athena.mit.edu> Organization: DEC Western Software Lab Lines: 20 In article <1990Jan10.172318.20172@athena.mit.edu> bjaspan@athena.mit.edu (Barr3y Jaspan) writes: >1) XtNameToWidget takes a widget and a list of names of children and >returns the widget ID of the last child in the list. For example, >suppose you have the widget tree > > foo > bar baz > quux > >Then XtNameToWidget(foo, "bar.quux") would return the ID of "quux." >Presumably the ID of "foo" comes from MrmFetchHierarchy(). When Motif goes R4 you can also use wildcarding, a la XtNameToWidget(foo, "*quux") This is a useful thing to keep in mind even though you can't do it yet since it frees the application from having to know as much about the widget tree (one of the main reasons for using UIL in the first place). -paul asente asente@decwrl.dec.com decwrl!asente