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 » U++ Library : Other (not classified elsewhere) » EditControl with AllCaps, OnlyNums, and ErrorMsg dialog
Re: EditControl with AllCaps, OnlyNums, and ErrorMsg dialog [message #37531 is a reply to message #37520] Mon, 15 October 2012 05:12 Go to previous message
luisrod0512 is currently offline  luisrod0512
Messages: 6
Registered: February 2012
Promising Member
mirek wrote on Sun, 14 October 2012 09:37

luisrod0512 wrote on Sat, 13 October 2012 22:45

:
EditField& InitCaps(bool b = true) { initcaps = b; return *this; }
EditField& AllsCaps(bool b = true) { allscaps = b; return *this; }
EditField& OnlyNums(bool b = true) { onlynums = b; return *this; }



EditField::SetFilter is the generic way, no need to provide special modes for this.




I created two functions
int OnlyNums(int);
int AllsCaps(int);

and then I used them as in this example "tsp_Descri.SetFilter(AllsCaps);"

and everything worked perfect..

Thank you Mirek....
 
Read Message
Read Message
Read Message
Previous Topic: flexibelize RectTracker, only works TopLeft -> BottomRight
Next Topic: umk got changed....
Goto Forum:
  


Current Time: Sat Aug 23 16:08:08 CEST 2025

Total time taken to generate the page: 0.04292 seconds