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.
I don't think there is any way around this. When the text is aligned to the left and you have 11 digits before the decimal in your mask, then the 11 prompt characters will be aligned to the left and push the text off to the right.
You could specify fewer digits before the decimal to reduce the amount of shift. 11 digits seems like a pretty big number to me - alhough of course I have no idea what kinds of numbers your application needs to deal with.
You could try setting the prompt character to a space, that might alleviate some of the spacing.
The other option would be to make the control wider so that it does not need to shift the text.
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