On 08.06.2011, at 09:15, Albrecht Schlosser wrote:

> On 07.06.2011 23:54, anon wrote:
> 
>> Well I still stick to handle() as my widget needs won't be causing 
>> troubles...yet..
>> 
>> [...] couldn't these type of widgets re-invoke handle() with those vanilla 
>> events ?
> 
> Yes, "they" can and they *should*. Usually you will only handle
> those events that you use to _extend_ the widget's functionality,
> e.g. FL_ENTER and FL_LEAVE for highlighting.

I remember that it was discussed a long time ago to make "do_callback()" 
virtual. I also could see a new event "FL_ACTION" for example, that can catch 
all callbacks before they happen, so overriding handle() would achieve just 
that.

The first solution would be faster, the second one would be slightly easier on 
the run-time memory requirements.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to