[..]
>
>       This comes up a *lot*, because I think people don't realize
>       when they install a handle() method, they need to pass ALL events
>       down to the base class, including the events they handle.

Methinks this paints with too broad a brush.

If you call your base class' handle() first, you are saying "handle
this event as usual, then do my stuff."

If you call it afterward, you are saying "do my stuff, then handle
this event as usual."

If you don't call it at all, you are saying "do my stuff instead
of the usual handling."

It depends on what you intend to do.

Of course, deciding what you really want can be complicated, because
what the various widgets do with various events isn't documented, so
it becomes a bit of trial and error.  But that's another story :)




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

Reply via email to