I tried to make a SpinnerM class (Spinner with Mousewheel support) but failed.
int
SpinnerM::handle(int ev)
{
int res = Fl_Spinner::handle(ev);
if (ev == FL_MOUSEWHEEL && this == Fl::belowmouse())
{
int dy = Fl::event_dy();
double v1 = value();
if (v1 + dy == minimum() || v1 + dy == maximum())
return 1;
value(v1 + dy);
do_callback();
return 1;
}
return res;
}
It never enters the if(). Is there no FL_MOUSEWHEEL event for spinners?
Jan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk