Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Thu Apr 25 23:06:36 CEST 2024

Total time taken to generate the page: 0.04559 seconds