matthiasm wrote:
>
> The Fl::event_button() function will tell you which button triggered
> an FL_PUSH or FL_RELEASE event
> <http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.event_button>
>
> Fl::event_buttons() (not the additional "s") will tell you, which
> buttons are currently held down for FL_PUSH, FL_MOVE, FL_DRAG, and
> FL_RELEASE (and a few more).
> <http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.event_buttons>

Yes, I know that.

But for example I typed:

if(Fl::event_button() == 3)
return Fl_Group::handle(e); //widget is derived from Fl_Group

(I tried also)
if(Fl::event_button() == 3) return 1;

in the FL_PUSH and FL_RELEASE case.
Now if I press the right mouse button while draging widget (with left mouse 
button held down), widget is not draging anymore.
I don't understand.
What do I did wrong ?


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

Reply via email to