Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!cs.utexas.edu!romp!auschs!d75!awdprime!kitty.austin.ibm.com!jon From: jon@kitty.austin.ibm.com (Werner) Newsgroups: comp.windows.x.motif Subject: Re: how do I left-justify the text in a push-button? Keywords: buttons are in a scrolled window, which is in a FORM dialog! Message-ID: <8104@awdprime.UUCP> Date: 31 May 91 12:37:08 GMT References: <1991May30.195137.23995@porthos.cc.bellcore.com> Sender: news@awdprime.UUCP Organization: IBM Austin Lines: 17 In article <1991May30.195137.23995@porthos.cc.bellcore.com>, wws@rruxc.uucp (Still Searching) writes: |> I'm placing some XmString text, created with XmStringCreateLtoR, |> in Push-Buttons which are on a bulletin board in a scrolled window. |> The text is always centered in the buttons; I want it left-justified. |> |> I have a feeling this is happening because everything is in a Form dialog with |> ATTACH_POSITION specified for all four sides of all widgets. Is there a way |> to get the text to shift to the left in the buttons? What you need to do is set the XmNalignment resource of the label widget to XmALIGNMENT_BEGINNING. The default is XmALIGNMENT_CENTER. You can also use XmALIGNMENT_END for right justification. -- ______________________________________________________________________________ jon@innerdoor.austin.ibm.com * Insert Standard Disclaimer here * IBM Advanced Workstations Division Austin, Texas USA 512-823-5156