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 » [FEATURE] WhenLostFocus in EditField
Re: [FEATURE] WhenLostFocus in EditField [message #31251 is a reply to message #31250] Wed, 16 February 2011 18:32 Go to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Ouff, I see the problem

If this, no problem

	virtual void ChildLostFocus() {
		a = 27;
	}


but with an "Exclamation()" or other operation that changes the focus, this is required

	virtual void ChildLostFocus() {
		static bool inside;
		
		if (inside)
			return;
		
		inside = true;

		Exclamation("Lost focus");

		inside = false;
	}


The problem is that the Exclamation() gets the focus, so function is called twice:
- When the child looses the focus
- When the Exclamation() window gets it Smile


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Select form in DocEdit or LineEdit
Next Topic: TextCtrl (aka LineEdit,DocEdit) dont use global Style
Goto Forum:
  


Current Time: Mon Apr 29 18:40:52 CEST 2024

Total time taken to generate the page: 0.02677 seconds