> >     "this" will be a pointer to your class (SpinnerM).
> >     Fl::belowmouse() will be a pointer to the widget (Fl_Spinner or 
> > Fl_Slider?),
>

I wonder if this is complicated by the nature of Fl_Spinner, though?

It's a subclass of Fl_Group, with several widgets contained within it - I 
imagine that belowmouse() is actually pointing to one of the inner widgets 
contained within the Fl_Spinner...

So, perhaps something like  ( belowmouse()->parent() == this) might be the way 
to go.

I'm assuming here that "this" will be the outer Fl_Group of the Fl_Spinner 
whilst belowmouse() is pointing to one of the inner widgets inside the group - 
that sort of thing...

(I'm not on my own machines, and I have no compiler here to test this with!)
--
Ian


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

Reply via email to