Home » U++ Library support » LineEdit, EditFields, DocEdit » What is the best way to create a mask in a editfield.
What is the best way to create a mask in a editfield. [message #12948] |
Fri, 30 November 2007 09:32  |
chico
Messages: 1 Registered: November 2007
|
Junior Member |
|
|
I am trying to create a mask in a EditField to format fields while typing.
The format would be "(XX) XXXX - XXXX" for a phone number
I have used WhenAction() "<<=", but when press backspace, delete or arrows (left and right), the cursor's position goes away.
Then I tried to override the Ctrl's Key and filter that keys but they seem to not accept K_BACKSPACE or K_DELETE.
Would be great a function like SetFilter(). "SetMask()"?!
It would be usefull for EditDate too. "XX/XX/XXXX"
|
|
|
Goto Forum:
Current Time: Wed Apr 30 17:38:40 CEST 2025
Total time taken to generate the page: 0.01397 seconds
|