home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / openloo / 3711 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!mcsun!sunic!ericom!etxkrjg
  3. From: etxkrjg@solsta.ericsson.se (Kristian Jorg  TX/DKL)
  4. Subject: Re: XView buttons drop last letter of label
  5. Message-ID: <etxkrjg.715532884@solsta-c>
  6. Sender: news@ericsson.se
  7. Nntp-Posting-Host: solsta-c.ericsson.se
  8. Organization: Ericsson
  9. References: <1992Aug21.145927.28528@mksol.dseg.ti.com>
  10. Date: Thu, 3 Sep 1992 15:08:04 GMT
  11. Lines: 20
  12.  
  13. newton@mksol.dseg.ti.com (scott c newton) writes:
  14.  
  15. >I'm writing an X Window program using the xview libraries.  The program reads
  16. >in an arbitrary number of button labels from a file, then creates those buttons
  17. >on a panel.  The problem is that every button's label is missing the last letter.
  18. >The label strings are stored in a structure and I can printf them just fine.
  19.  
  20. I believe you are using a fixedwidth font? I had the same problem and actually
  21. talked with a programmer on Sun about this. He did not have a clue...
  22.  
  23. It seems like the button width is computed to the width of what space the label
  24. would use up if a *proportional* font was used.
  25.  
  26. Use a proportional font and your problem is gone.
  27.  
  28. --
  29. ---------------------------------------------------+  
  30. Kristian Jorg, Software Design Support and Methods !
  31. Ericsson Telecom AB, Karlstad, Sweden              !
  32.                                                    !
  33.