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