Path: utzoo!attcan!uunet!husc6!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Popup menus and X Message-ID: <8808171352.AA00616@LYRE.MIT.EDU> Date: 17 Aug 88 13:52:05 GMT References: <880817061454.23d@VLSI.JPL.NASA.GOV> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 21 > e.g. button=XtCreateManagedWidget("yes",commandWidgetClass,menu_bar, > (Arg *)0,ZERO); > produces a button labled "yes", but where would I find that documented? See "X Toolkit [Athena] Widgets" section 3.1.: "XtNlabel specifies the text string that is to be displayed in the Command widget. The default is the widget name of the Command widget." > what happens when > several widgets have the same name ... > I am confused that both seem to refer to the same Widget, button. nothing bad. If two peer widgets have the same name (and class), you will be unable to independently specify resources for them. Also, the procedure XtNameToWidget will arbitrarily pick one instance. The Intrinsics don't use widget name for very much, but higher levels (such as ui editors) might, so it's a good idea to assign unique names to widgets sharing a common parent.