> "this" will be a pointer to your class (SpinnerM).
> Fl::belowmouse() will be a pointer to the widget (Fl_Spinner or
> Fl_Slider?),
// standard Spinner with mousewheel support
class SpinnerM : public Fl_Spinner
{
int handle(int);
public:
SpinnerM(int x, int y, int w, int h, char const* label = 0)
: Fl_Spinner(x, y, w, h, label)
{;}
};
So, same approach as I did with Slider (where it works):
class Slider : public Fl_Slider, public Wid
{
int handle(int);
public:
Slider(int x, int y, int w, int h, char const* label = 0)
: Fl_Slider(x, y, w, h, label)
{;}
..
};
So "this" should point to the widget in question.
Jan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk