Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!think.com!linus!linus!mbunix.mitre.org From: daf@mbunix.mitre.org (Dennis Franciskovich) Newsgroups: comp.windows.x.motif Subject: XmLabel question Message-ID: <118526@linus.mitre.org> Date: 29 Aug 90 15:53:19 GMT Sender: usenet@linus.mitre.org Organization: SEPTIC FOOLS Lines: 21 (I am using Motif 1.0 under R4 on a VAXstation 3100) I have a question about the proper way to create an XmLabel widget. The widget has the XmNlabelString resource, which can be used to specify the label string. However, if this resource is not set, the label seems to use the name of the widget as the label string. For example, I've been using the following function call: XmCreateLabel(parent, "label string", NULL, 0); This works fine with no apparent problem. My question is, is this a bad thing to do? This is related to another discovery I made: I accidentally left out the last two arguments, XmCreateLabel(parent, "label string"); and this also worked with no error at either compilation or run time. Any comments? -- Dennis