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 » EditMinMax ctrl implementation
Re: EditMinMax ctrl implementation [message #1059 is a reply to message #1057] Sat, 18 February 2006 23:36 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Let me add one more viewpoint. I think it is good to show visual clues if some fields contain invalid values, but popup windows are too annoying. How about adding a reddish tint to the background color of EditFields which contain an invalid data? I made the implementation in EditField::Paint, by adding these two lines:
if(convert && convert->Scan(text).IsError()) 
		paper = Blend(paper, Color(255, 0, 0), 32);

It shows if the data is valid while you are typing it. I attach the modified file.
  • Attachment: EditField.zip
    (Size: 3.27KB, Downloaded 2012 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Next Topic: Limited EditString...- MaxChars [SOLVED AND FIXED...]
Goto Forum:
  


Current Time: Thu May 16 15:43:15 CEST 2024

Total time taken to generate the page: 0.01447 seconds