On 07.06.2011, at 19:05, anon wrote:

> 
> In other words: I stick to handle() for dear life :D. Thanks for the 
> explanation Stan.

It's not that simple. The handle() method manages incoming events, but not 
every event will call your callback. For example, buttons call a callback when 
the mouse was clicked *and* released inside the bounding box. So using an 
Fl_PUSH event as an indicator that the button was pressed is wrong. There are 
other button styles (the repeat button for example) where an FL_PUSH leads to 
one or even many callbacks when the mouse button stays pushed.

handle() is for raw events

callbacks are for the vanilla user interactons
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to