11-25-2010 09:46 AM
I have created a custom edit field which can take 1 numeric character only. If it already has a value when it receives the focus then I wish it to appear to be overwritten (not insert). At the moment the user has to delete the character first. Can any one help please?
Solved! Go to Solution.
11-25-2010 09:55 AM
welcome to the support forums.
you have several options, depending on your exact needs
- delete the text onFocus. deletes the text also when the user does not enter anything though, but you could set the text again onUnFocus
- overwrite keychar to check the input and set the text always to the entered character
11-26-2010 05:34 AM
Have just come up with a similar solution having viewed other threads. I used the keychar event to select the text already in the field and then returned the entered character.
Thanks for your help.