home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!mcsun!sunic!ericom!etxkrjg
- From: etxkrjg@solsta.ericsson.se (Kristian Jorg TX/DKL)
- Subject: Re: XView buttons drop last letter of label
- Message-ID: <etxkrjg.715532884@solsta-c>
- Sender: news@ericsson.se
- Nntp-Posting-Host: solsta-c.ericsson.se
- Organization: Ericsson
- References: <1992Aug21.145927.28528@mksol.dseg.ti.com>
- Date: Thu, 3 Sep 1992 15:08:04 GMT
- Lines: 20
-
- 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.
-
- --
- ---------------------------------------------------+
- Kristian Jorg, Software Design Support and Methods !
- Ericsson Telecom AB, Karlstad, Sweden !
- !
-