MouseDown event

From Xojo Documentation

Revision as of 12:54, 8 March 2010 by SteffX (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Event


{{{owner}}}.MouseDown(x as Integer, y as Integer) As Boolean

Supported for all project types and targets.

The mouse button was pressed inside the control's region at the location passed in to x, y.

x and y are local coordinates, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.


Return True if you are going to handle the MouseDown. In such a case:

  • It prevents REAL Studio from processing the event itself: the Action event, if any, will not execute and the state of the object will not change.
  • You will receive the MouseDrag and MouseUp events.


Controls implementing the MouseDown event