From Xojo Documentation


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

Supported for all project types and targets.

The mouse button was pressed inside the window and moved (dragged) at the location local to the window passed in to x, y. The user has moved the mouse inside the window (but not over a control) while the mouse button is held down. This event handler receives parameters that indicate where the mouse is in local window coordinates. This event will not occur unless you return True in the MouseDown event.