home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 19038 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  2.0 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: rogerr@netcom.com (roger reynolds)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Xm100TH_FONT_UNITS as XmNunitType problems
  5. Message-ID: <1993Jan1.003633.7042@sm.sony.co.jp>
  6. Date: 1 Jan 93 00:36:33 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  10. Lines: 36
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Thu, 31 Dec 1992 21:55:25 GMT
  14. Message-Id: <1992Dec31.215525.4798@netcom.com>
  15. Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18.     I am trying to use the Xm100TH_FONT_UNITS as the unitType for
  19.     an XmManager widget, and then place children (say XmTextFields)
  20.     at x,y locations which are 100*row (for y) and 100*col (for x)
  21.     The obvious goal being that no matter what font is used, the
  22.     relative positions of the children remain the same.
  23.     
  24.     Problem is it doesn't seem to work.  For example, with the
  25.     font -misc-fixed-*-*-*-*-14-*-*-*-*-*-*-*,
  26.  
  27.     Now, the right edge of a text field created with XmNx 100
  28.     and XmNcolumns 8 will exactly abutt, another text field 
  29.     created with its XmNx set to 800.  Note that I expected
  30.     this with the second XmNx set to 900, or 100 + 800, or
  31.     col 1 + 8 columns.  So, already I see that the fontUnits
  32.     do not appear to be accurate.
  33.  
  34.     Secondly, if I change the font in the above example to
  35.     -misc-fixed-*-*-*-*-24-*-*-*-*-*-*-*,  the 2 text fields
  36.     no longer abutt, but overlap by 2.5 columns or so.  The
  37.     problem naturally gets worse as values of XmNx increase.
  38.     And this is with a fixed width font!
  39.  
  40.     So hears the question,  did I completely misunderstand the 
  41.     purpose of XmNunitType, or does it just not work, or have I
  42.     missed some little bit of how it is supposed to work.
  43.     
  44.     Oh yeah, I am using Motif version 1.1.4 supplied by OSF,
  45.     on sparc SunOs 4.1.3
  46.  
  47.     Thanks in advance for any tips,
  48.     rogerr@netcom.com
  49.