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

Home » U++ Library support » LineEdit, EditFields, DocEdit » [FEATURE] WhenLostFocus in EditField
Re: [FEATURE] WhenLostFocus in EditField [message #31141 is a reply to message #31140] Wed, 09 February 2011 14:07 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

koldo wrote on Wed, 09 February 2011 12:44

Yes, although it is a pity to use a new class and losing .usc representation for layout file (or having to create a new that is really a copy of EditString, EditInt, and so on...) Sad

Usc supports templates, so you don't have to lose anything Wink Example can be found in CtrlLib.usc, look for WithDropChoice.

Anyway, I agree that it is unnecessary in this case and that it is much more elegant to use WhenEnter and ChildLostFocus (which is great idea which never occured to me before Mirek mentioned it Smile ).

Honza
 
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: Sun Sep 13 01:35:50 GMT+2 2026

Total time taken to generate the page: 0.00585 seconds