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
544
UltraNumericEditor and MaskInput
posted

Hello everyone,

 I have several ultra numeric editors which have their TextHAlign set to Infragistics.Win.HAlign.Left. FormatString of a control is set to "0.0000" and MaskInput property to {double:11.4}. When control contains some value it is nicely aligned to the left. When I enter edit mode, text gets offset, as specified by the first part of format string in MaskInput (which works as expected). Now I am wondering whether this behaviour can be turned off, as it is annoying (text jumps from the left towards right part of control, but is still aligned to the left side) ? I've tried to set MaskInput to handle number of any size with decimal precision of four digits, but to no avail (it seems that specifiying integer part is mandatory - how come?)

 Thanks in advance for your time and explanation.

Parents
No Data
Reply
  • 145
    posted

    I'm facing the same problem, but with an UltraNumericEditor using Integer as datatype.

    I'd like it to behave exactly like a left-alignet Winforms TextBox, when it comes to how the value is presented both while typing and not. The look of it when the control doesn't have the focus is ok, but when I enter the control to start typing, the cursor is positioned in the middle of the control (with enought space to the left to fill with the allowed numbers). So... I DO NOT want it to "fill to the right", but I want it to "fill to the left" ! 

    Anyone?
    Regards Andreas

Children