From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

DesktopUIControl.MouseDrag(X as Integer, Y as Integer)

New in 2021r3

Supported for all project types and targets.

The mouse button was pressed inside the control and moved (dragged) at the location local to the control passed in to x, y.


This event fires repeatedly while the mouse button is down regardless of whether or not the mouse coordinates are changing.

This event will not occur unless you return True in the MouseDown event.