home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!osf.org!meeks
- From: meeks@osf.org ("W. Scott Meeks")
- Newsgroups: comp.windows.x.motif
- Subject: Re: PushButtons in rowColumn
- Message-ID: <9212311629.AA05309@postman.osf.org>
- Date: 31 Dec 92 16:29:39 GMT
- References: <40426@twerp.ease.arco.com>
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: inet
- Organization: The Internet
- Lines: 31
-
- >Date: 30 Dec 92 16:39:57 GMT
- >From: cahuja@ames.arc.nasa.gov (Chander Ahuja)
- >
- >is there any way to tell the rowColumn (work_area) not to resize its child (a
- >push button in this case) upto the width of all the other children...
- >
- >...and now that we can let it keep its reg. old size, can we have it centered ?
- >
- >-chander
- >PS>> ya..i could put it in a form and center it as posted in other messages
- >but is that the only way....lots of wasted widgets that way...
-
- Depending on the exact behavior you want, you want to set the XmNpacking
- resource to either XmPACK_TIGHT or XmPACK_NONE. Read the manpage
- description of this resource for more details.
-
- By having it centered, do you mean have the button centered within the
- RowColumn or the text of the button centered within the button? If the
- former, then you might want to try PACK_TIGHT to see if it give the effect
- you want. If the latter, then you want to set the XmNalignment resource of
- the Label to XmALIGNMENT_CENTER. (Alternatively, you could try setting the
- XmNentryAlignment resource, but this is probably not for the squeamish.)
-
- W. Scott Meeks
- Open Software Foundation
- meeks@osf.org
- (617) 621-7229
- Practice random kindness and senseless acts of beauty.
-
-
-
-