Oguz Akyuz wrote:
> I would expect that the callback of the button will be executed when the
> button is pressed. Isn't that so?
The OP is probably starving Fl_Button of all events
by calling Fl_Widget::handle(event) instead of Fl_Button::handle(event),
so the button's callback is probably never being called when that
handle() method is in place.
Also, OP's switch logic is causing push/drag/release events
to return before they are passed down to the base class's handle().
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.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk