Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!zaphod.mps.ohio-state.edu!wuarchive!decwrl!adobe!asente From: asente@adobe.com (Paul Asente) Newsgroups: comp.windows.x.motif Subject: Re: XmLabel question Message-ID: <6265@adobe.UUCP> Date: 4 Sep 90 22:59:03 GMT References: <118526@linus.mitre.org> <141712@sun.Eng.Sun.COM> Sender: news@adobe.COM Organization: Adobe Systems Inc. Lines: 23 In article <141712@sun.Eng.Sun.COM> argv@turnpike.Eng.Sun.COM (Dan Heller) writes: >Because you are using the name >of the widget itself as the label, the user's resource file would specify >attributes about the widget using the label's name: > > *label string.labelString: another label > >This means: all widgets that have the name "label string" should use a >label string that says: "another label". The rest of Dan's message is quite correct and contains some very useful advice. This bit, however, isn't quite right. Space is not a legal character in a resource specification, so the above line is not a valid resource specification. You're fine using the label's name as its text value as long as it contains only letters and numbers; if it contains spaces or any punctutation characters you should give it a different name and store the string in the application defaults file (as above). -paul asente New address! asente@adobe.com ...decwrl!adobe!asente