TextField.MouseDown

From Xojo Documentation

Event


TextField.MouseDown(x As Integer, y As Integer) As Boolean

Supported for all project types and targets.

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

Notes

The coordinates x and y are local to the control, 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 MouseDown. When you return True:

Example

The MouseDown event uses the DragItem constructor when the user drags the contents of the control. It is:

Var d As DragItem
d = New DragItem(Self, Me.Left, Me.Top, Me.Width, Me.Height)
d.Picture = Me.Image
d.Drag //Allow the drag

See Also

MouseDown event