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
90
Text in control moves on edit
posted

I have a problem that happens with UltraNumericEditor and in Grid. When I enter edit mode with a click the number moves right beyond the control borders. Hier is an example:

https://jumpshare.com/v/3MFy9EZZqLGriTny44py

It doesn't happen if I set TextRenderingMode on GDI, but could I avoid it while using GDI+?

Would be grateful if you could hint me what can be the reason and how to change it.

Parents
No Data
Reply
  • 1700
    Offline posted

    Hello Kiril,

    Unfortunately, I don’t think this could be avoided, since the cause of this problem is how the GDI+ renders the UltraNumericEditor. When the UltraNumericEditor is not in edit mode it is rendered by the GDI+, however when it is in edit mode it uses a TextBox control, which is rendered by GDI and this is why the issue with text shifting occurs. Actually this can be considered a general issue rather than Infragistics issue, since this is how GDI+ works, event though GDI+ performs better, using GDI may not actually affect considerably the performance of your application unless it is “text heavy”.

    Regards,
    Ivan Kitanov

Children