U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
chico is currently offline  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"
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EditString and QTF
Next Topic: How to trim leading and trailing spaces in EditString?
Goto Forum:
  


Current Time: Sat Apr 25 22:14:31 GMT+2 2026

Total time taken to generate the page: 0.00490 seconds