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

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!adimail!tel
  3. From: tel@adimail.uucp (Terry Monks)
  4. Subject: Re: XView buttons drop last letter of label
  5. Message-ID: <1992Sep4.144948.17626@adimail.uucp>
  6. Organization: Automata Design, Inc.
  7. X-Newsreader: Tin 1.1 PL5
  8. References: <etxkrjg.715532884@solsta-c>
  9. Date: Fri, 4 Sep 1992 14:49:48 GMT
  10. Lines: 25
  11.  
  12. Kristian Jorg  TX/DKL (etxkrjg@solsta.ericsson.se) wrote:
  13. : newton@mksol.dseg.ti.com (scott c newton) writes:
  14. : >I'm writing an X Window program using the xview libraries.  The program reads
  15. : >in an arbitrary number of button labels from a file, then creates those buttons
  16. : >on a panel.  The problem is that every button's label is missing the last letter.
  17. : >The label strings are stored in a structure and I can printf them just fine.
  18. : I believe you are using a fixedwidth font? I had the same problem and actually
  19. : talked with a programmer on Sun about this. He did not have a clue...
  20. : It seems like the button width is computed to the width of what space the label
  21. : would use up if a *proportional* font was used.
  22. : Use a proportional font and your problem is gone.
  23.  
  24. But this solution is no good if you are displaying columnar data. You need a fixed
  25. width font to make sure everything lines up, but are reduced to adding extra
  26. spaces at the end of your button strings to make sure it all prints.
  27.  
  28. Sun needs to fix this obvious bug, or to allow us to specify the font
  29. separately for items in the same panel.
  30. -- 
  31. Terry Monks        Automata Design Inc    (703) 742-9400
  32.  
  33.