home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!ucbvax!oceanroutes.ns.ca!deveau
- From: deveau@oceanroutes.ns.ca ("Terry J. Deveau")
- Newsgroups: comp.windows.x.motif
- Subject: Re: positioning SlectionBox buttons
- Message-ID: <9211161601.AA29533@BU.EDU>
- Date: 16 Nov 92 16:00:50 GMT
- References: <1992Nov12.103521.1@univrs.decnet.lockheed.com>
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: inet
- Organization: Oceanroutes Canada Inc.
- Lines: 16
-
- >
- > I would like to explicit position the buttons on a selection box. Does
- > anyone know how to do this?
- >
- I'm not sure if this will work or not, but it is what I would try first:
-
- 1. get the widget id with widget=XmSelectionBoxGetChild(...)
- 2. unmanage it with XtUnmanageChild(widget)
- 3. set the XmNx and XmNy resources on it using XtSetValues(widget,...)
- 4. manage it again with XtManageChild(widget)
-
- If this doesn't work you may have to use the supplied button closest
- to the position you had in mind and change the label, etc. to make
- it look and act like the button you wanted to have in that spot.
-
- ... Terry
-