I want to ask if there is some consistency when the Fl_Widget::handle() 
method gets particular events. For instance it seems that FL_PUSH is 
sent to a widget only when clicked inside the widget but FL_MOUSEWHEEL 
in all cases.

Looking into implementation for Fl_Group::handle() i see following code 
for FL_MOUSEWHEEL event:

case FL_MOUSEWHEEL:
     for (i = children(); i--;) {
       o = a[i];
       if (o->takesevents() && Fl::event_inside(o) && send(o,FL_MOUSEWHEEL))
        return 1;
     }
     for (i = children(); i--;) {
       o = a[i];
       if (o->takesevents() && !Fl::event_inside(o) && 
send(o,FL_MOUSEWHEEL))
        return 1;
     }
     return 0;

which looks very strange to me (and could be simplified anyway). Is that 
a bug and should be the second loop removed? If so, I will fill STR.




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

Reply via email to