U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » LineEdit, EditFields, DocEdit » Lost focus in edit fields
Re: Lost focus in edit fields [message #27677 is a reply to message #27676] Thu, 29 July 2010 12:57 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Just use the one from this thread in your own code, though it doesn't need as much code as above:
template <class T>
struct WithLostFocus : public T {
		Callback WhenLostFocus;
		
		virtual void LostFocus() {
			T::LostFocus();
			WhenFocusLost();
		}
};

[Updated on: Thu, 29 July 2010 12:58]

Report message to a moderator

 
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
Previous Topic: How to add a currency symbol to an EditDoubleSpin?
Next Topic: What do you think about this approach to making CodeEditor more user extendable?
Goto Forum:
  


Current Time: Sat Apr 25 17:49:18 GMT+2 2026

Total time taken to generate the page: 0.00876 seconds