In a static, %SS_RIGHT aligned control (label) I want to display some text using an italic font. Unf. the last characters of each line are only partially visible. Adding a normal space - CHR$(32) - as the last character, causes that the text lines are no longer exactly aligned. Is there a possibility to add an m-space (or an n-space) instead?
Announcement
Collapse
No announcement yet.
Italic last characters invisible in label control
Collapse
X
-
Italic last characters invisible in label control
Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
http://zijlema.basicguru.eu
*** Opinions expressed here are not necessarily untrue ***Tags: None
-
Strange thing, Adam.
In my app. it happens with Arial, 14 points. Because the application is too large to post just for the sake of 1 problematic control, I tried to duplicate it. Same experience as you had: no match! Thanks for giving it a try, anyway.
Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
http://zijlema.basicguru.eu
*** Opinions expressed here are not necessarily untrue ***
Comment
-
You could trying making that label control owner-draw (SS_OWNERDRAW) then draw the text yourself with DrawText or TextOut with right alignment after selecting your font into the control's DC at painting time (WM_DRAWITEM).
???Michael Mattias
Tal Systems (retired)
Port Washington WI USA
[email protected]
http://www.talsystems.com
Comment
Comment