On 22.12.2009, at 07:36, N. Cassetta wrote:

> Here's a (minimal) implementation of my problem. When I click the lower 
> button, fl_alert() appears and suddenly closes as if a mouse click was still 
> pending.

MyBox::handle does not take care of mouse release events, so instead they are 
sent to whatever other widget may take them, in this case the alert.

I suggest that you take a look at src/Fl_Button.cxx to see how a mouse click 
should be handled. Wouldn't it be batter to derive MyBox from Fl_Botton?

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

Reply via email to