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++ Widgets - General questions or Mixed problems » EditString validation
EditString validation [message #20065] Mon, 16 February 2009 00:10 Go to previous message
Kajko is currently offline  Kajko
Messages: 14
Registered: December 2008
Location: Ireland, Serbia
Promising Member
Hi everybody...
I have interesting problem. Code:

class ccc : public TopWindow {
public:
typedef ccc CLASSNAME;

EditString str1;
EditString str2;
EditString str3;

ccc()
{
SetRect( 0, 0, HorzLayoutZoom(430), VertLayoutZoom(485) );

Add(str1.LeftPosZ(100, 300).TopPosZ(10, 20));
Add(str2.LeftPosZ(100, 300).TopPosZ(30, 20));
Add(str3.LeftPosZ(100, 300).TopPosZ(50, 20));

};
};


GUI_APP_MAIN
{
ccc().Run();
}


Is there anyway to validate string input BEFORE string lose focus and prohibit losing focus if valid fails ?
I will try to explain better...
Let say that only valid input in str2 is str1 + something. When user wants to leave str2 (K_ENTER, K_UP, K_DOWN, etc...) I would like to validate str2 and keep focus on str2 until text entered is not right.
I do not know did i make my self clear...

Cheers
Sasa


b78a07c7fb9b68436af9fd23f4e76cc5
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What is ParentCtrl?
Next Topic: Help needed dealing with switch control
Goto Forum:
  


Current Time: Fri Jun 06 22:01:10 CEST 2025

Total time taken to generate the page: 0.03741 seconds