Control.MouseX

From Xojo Documentation

Revision as of 14:34, 15 November 2021 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Integer )
IntegerValue = aControl.MouseX

Supported for all project types and targets.

The X coordinate of the mouse (points). Measured from the top-left corner of the control.

Sample Code

This code is in the MouseDown event of a TextField and displays the X-coordinate at the point of the MouseDown event.

Me.Value = Str(Me.MouseX)