Hi,Is it possible to make the UltraMaskedEdit (setting Edit as Integer) to align the text to left side? The default is at right side, and we try to change it to left side using the Appearance -> TextHAlign, but it does not work.
Thanks.Felix
Hi,
Thanks for your suppoer, it works.
Regards
Hello Felix,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
I just tried this out by placing a new UltraMaskedEdit control on a form. I set EditAs to Integer, and the text was immediately aligned to the left side of the control. I then change the mask to "nnn", just to see if that made any difference and it did not. The text is aligned left by default. So the mask has nothing to do with it.
My best guess here is that you are using this control as an editor in a WinGrid column and not on it's own. If that's the case, then nothing you set the on the control's appearance will have any effect on the grid - you have to use the column's appearance to change the text alignment.
What you could do is to use the 'InputMask' property of the control and set it like in the following line of code:
ultraMaskedEdit1.InputMask = "###";
The 'trick' here lies in using the "#" sign, not the 'n' mask. Please try the above and let me know if it meets your requirements.