MouseFormX

[property icon] MouseFormX

Returns the current mouse position within a Click() event in absolute form coordinates.

Read-only Runtime-only Integer property

Applies to: Generic

Introduced in KCML version 6.00


>

MouseFormX

This property returns the horizontal mouse position at the time a click event was triggered for a control. This property can be used in conjunction with the MouseFormY property to position a control, normally a popup menu, onto the control at the exact location where the mouse button was clicked. The position is returned relative to the top left hand corner of the form. For example, the following would position a popup menu at the location of the right mouse click:

-DEFEVENT Form1.RTFControl1.RightClick()
         .menu1.TrackPopup(..MouseFormX, ..MouseFormY)
 END EVENT

See also

Generic methods, properties and events.