Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
Text rendering changes when UltraTextEditor gets focus
posted

When the control gets focus, the spacing between letters seems to decrease. I think this is distracting. I'm able to stop this behavior by setting the TextRendering to GDI, but I'm wondering if I'm losing anything by doing so or if there's another way to accomplish this.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The reason this happens is that the control draws the text using GDI+ (the preferred method in DotNet), but when it goes into edit mode, it uses an inbox TextBox control, which uses GDI.

    You will see the same difference if you have a label and a TextBox with the same text.

    Anyway, using GDI is a bit slower in DotNet, but for a single TextEditor, you probably will not see any different.

Children
No Data