home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / motif / 8291 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!osf.org!meeks
  2. From: meeks@osf.org ("W. Scott Meeks")
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: PushButtons in rowColumn
  5. Message-ID: <9212311629.AA05309@postman.osf.org>
  6. Date: 31 Dec 92 16:29:39 GMT
  7. References: <40426@twerp.ease.arco.com>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Distribution: inet
  10. Organization: The Internet
  11. Lines: 31
  12.  
  13. >Date: 30 Dec 92 16:39:57 GMT
  14. >From: cahuja@ames.arc.nasa.gov (Chander Ahuja)
  15. >
  16. >is there any way to tell the rowColumn (work_area) not to resize its child (a 
  17. >push button in this case) upto the width of all the other children...
  18. >
  19. >...and now that we can let it keep its reg. old size, can we have it centered ?
  20. >
  21. >-chander
  22. >PS>> ya..i could put it in a form and center it as posted in other messages
  23. >but is that the only way....lots of wasted widgets that way...
  24.  
  25. Depending on the exact behavior you want, you want to set the XmNpacking
  26. resource to either XmPACK_TIGHT or XmPACK_NONE.  Read the manpage
  27. description of this resource for more details. 
  28.  
  29. By having it centered, do you mean have the button centered within the
  30. RowColumn or the text of the button centered within the button?  If the
  31. former, then you might want to try PACK_TIGHT to see if it give the effect
  32. you want.  If the latter, then you want to set the XmNalignment resource of
  33. the Label to XmALIGNMENT_CENTER.  (Alternatively, you could try setting the
  34. XmNentryAlignment resource, but this is probably not for the squeamish.)
  35.  
  36. W. Scott Meeks           
  37. Open Software Foundation 
  38. meeks@osf.org            
  39. (617) 621-7229           
  40. Practice random kindness and senseless acts of beauty.
  41.  
  42.  
  43.  
  44.