Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!stanford.edu!lucid.com!campeau!sol From: sol@laura-palmer.lucid.com (Sonia Lyris) Newsgroups: comp.windows.x.motif Subject: PushButton question, Motif 1.1 Message-ID: Date: 3 Apr 91 20:35:59 GMT Sender: usenet@lucid.com Reply-To: sol@lucid.com Organization: Lucid, Inc., Menlo Park, CA Lines: 25 I'm using Motif 1.1 on a sun4. I'm having trouble getting a XmPushButton widget to resize when I set the labelString to a string of multiple lines of text. The widget has been created but not yet mapped when I do the following: { char* mystring = "one\ntwo\nthree\nfour"; XmString xmstr; xmstr = XmStringCreateLtoR (mystring, XmSTRING_DEFAULT_CHARSET); ac = 0; XtSetArg(al[ac], XmNlabelString, xmstr); ac++; XtSetValues(widget, al, ac); } When the widget is mapped, it has about enough height for a single line of text. I've checked the defaults; XmNrecomputeSize is TRUE, and XmNlabelType is XmSTRING. References, comments, and suggestions appreciated, even if the solution is obvious. Thank you. Sonia Lyris | Lucid, Inc, Menlo Park CA sol@lucid.com | 415/329-8400x5559