Announcement

Collapse
No announcement yet.

Italic last characters invisible in label control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Italic last characters invisible in label control

    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?

    Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
    http://zijlema.basicguru.eu
    *** Opinions expressed here are not necessarily untrue ***

  • #2
    Egbert,

    I tried duplicating the disappearing text with an italic font, but could not on a single or multi line label. It could be the font, as I didn't try every font I have, but of that I am not certain.

    What font are you using to display the text with?
    Adam Drake
    Drake Software

    Comment


    • #3
      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


      • #4
        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 Inc. (retired)
        Racine WI USA
        [email protected]
        http://www.talsystems.com

        Comment

        Working...
        X