home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / motif / 7514 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.0 KB

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