AOB
Registered User.
- Local time
- Today, 06:04
- Joined
- Sep 26, 2012
- Messages
- 621
I'm trying to do something that seems very simple but can't quite get it to work as intended.
I have a textbox (unbound) to which I want to apply an input mask. Basically, I want to restrict the user to only enter values of the form "ABC-099999" - in other words, it must be prefixed with the characters "ABC-" and at least 1 and up to 6 numerical characters only.
So basically my input mask looks like this :
What's annoying me is, when I click into the box, the cursor is automatically placed at the end of the text (i.e. I see "ABC-" followed by 6 spaces and then the cursor) So if I immediately start typing my digits, nothing appears (I have exceeded the "bounds" of the mask) I have to either backspace all the way back to the hyphen, or click the mouse pointer to the same location, before I can actually start to key in the digits. It would make a lot more sense if the cursor was automatically adjacent to the hyphen so I can immediately start keying the digits without manual intervention.
And I'm assuming this is possible because otherwise such input masks would be extremely irritating for users (having to always manually correct the cursor position each time)
What am I doing wrong?
I have a textbox (unbound) to which I want to apply an input mask. Basically, I want to restrict the user to only enter values of the form "ABC-099999" - in other words, it must be prefixed with the characters "ABC-" and at least 1 and up to 6 numerical characters only.
So basically my input mask looks like this :
"ABC-"099999;0;" "
What's annoying me is, when I click into the box, the cursor is automatically placed at the end of the text (i.e. I see "ABC-" followed by 6 spaces and then the cursor) So if I immediately start typing my digits, nothing appears (I have exceeded the "bounds" of the mask) I have to either backspace all the way back to the hyphen, or click the mouse pointer to the same location, before I can actually start to key in the digits. It would make a lot more sense if the cursor was automatically adjacent to the hyphen so I can immediately start keying the digits without manual intervention.
And I'm assuming this is possible because otherwise such input masks would be extremely irritating for users (having to always manually correct the cursor position each time)
What am I doing wrong?