Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ibmps2!aix!vendiswc From: vendiswc@aix.aix.kingston.ibm.com (Shaun Codner) Newsgroups: comp.windows.x.motif Subject: Re: how do I left-justify the text in a push-button? Summary: use XmALIGNMENT_BEGINNING for XmNalignment resource Keywords: XmString XmNalignment XmLabel Message-ID: <7624@aix.aix.kingston.ibm.com> Date: 31 May 91 19:49:38 GMT References: <1991May30.195137.23995@porthos.cc.bellcore.com> Organization: IBM Corp. Kingston NY Lines: 20 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. ... >Wayne Scott >---------------------------------------------- > wws@bcr.cc.bellcore.com I think what you are looking for is the XmNalignment resource inherited from the XmLabel widget class. It can be set to XmALIGNMENT_BEGINNING (left justified). The default is XmALIGNMENT_CENTER which is what I guess you are seeing. Depending on the situation, your mileage may vary. -Shaun -- ------------------------------------------------------------------------------ --- Shaun Codner Telephone 914-385-7189 Office 025-3 4W01 --- --- Pencom Systems, Inc. TIE 695-7189 E-Mail swc@frantic --- ------------------------------------------------------------------------------