[Gambas-user] Mouse Events

Matti math.eber at ...221...
Tue Oct 20 20:56:23 CEST 2009


When I want to use a DblClick event on some controls that don't have the "Activate" event (eg PictureBox), I get difficulties:

The MouseDown event is (of course) raised before the DblClick event.
So, before I can react to DblClick, I always land in MouseDown. Here I can tell if the mouse was pressed left or right and
everything, but I can't see if it is just the first click of a DblClick.

I don't see a possibility to respond to a single-click on the control in one Sub, and to a double-click in another, because
there are always two events when there is a double-click.

Any ideas?
Thanks, Matti




More information about the User mailing list