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.
Re: What is the best way to create a mask in a editfield. [message #12949 is a reply to message #12948] Fri, 30 November 2007 10:13 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

This is not possible yet. We were thinking about extending Convert interface (each edit uses it) that would allow to do that. I don't know when it'll be done as this change would cause backward compatibility problems.
From the other side upp prefers allowing the user to input any string - (keyboard filtered is acceptable) and to display immediate error (edit changes color of the background to red) when edit's data is not correct (you just pass ErrorValue to edit in your callback) and display detailed error message when dialog OK button is pressed. Just override bool Accept() of your control to display your own messages.
 
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: Wed Apr 30 12:21:14 CEST 2025

Total time taken to generate the page: 0.00977 seconds