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

Home » U++ Library support » U++ Callbacks and Timers » Feature request
Re: Feature request [message #42012 is a reply to message #39541] Mon, 10 February 2014 20:19 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Alboni wrote on Tue, 26 March 2013 14:10

I would like to see things like:

Callback whenKillFocus;
Callback whenSetFocus;
etc.

in Ctrl

that would make writing complicated forms a lot easier.



I understand the sentiment, but 'etc.' can mean a lot... In any case, each such thing means 8 bytes more in sizeof(Ctrl), which is not very good for filling e.g. ArrayCtrl with widgets.

Generally, for focus games, ChildGotFocus and ChildLostFocus virtual methods in parent often even better than those individual callbacks.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: manually creating callback
Next Topic: Kill callbacks when parent is destructed
Goto Forum:
  


Current Time: Sat May 23 07:46:49 GMT+2 2026

Total time taken to generate the page: 0.00940 seconds