home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8172 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!news.dfrf.nasa.gov!fred.dfrf.nasa.gov!todd
  3. From: todd@fred.dfrf.nasa.gov (Todd Vernon)
  4. Subject: Centering button in form ?
  5. Message-ID: <1992Dec22.175107.3484@news.dfrf.nasa.gov>
  6. Sender: news@news.dfrf.nasa.gov (Usenet news)
  7. Reply-To: todd@fred.dfrf.nasa.gov (Todd Vernon)
  8. Organization: Clarkson
  9. Date: Tue, 22 Dec 1992 17:51:07 GMT
  10. Lines: 25
  11.  
  12.  
  13. Easy Question,....but not for me....
  14.  
  15.  -------------------------------
  16. |       ----------------        |
  17. |      |                |       |
  18. |       --XmPushButton--        |
  19.  ------------------------XmForm-
  20.  
  21. I want to keep the button centered
  22. inside the form horizontally and
  23. also keep the button the same width
  24. all the time.
  25.  
  26. Using XmATTACH_POSITION you can set
  27. a percent for left and right, but this
  28. still changes the button width as
  29. the form gets bigger.  XmATTACH_FORM
  30. with offsets have a similar problem.
  31.  
  32. Surely this sort of management isn't
  33. beyond what the form can do, I think
  34. I must be missing something.
  35.  
  36. todd@fred.dfrf.nasa.gov
  37.