Slider.MouseDrag

From Xojo Documentation

Revision as of 22:56, 7 August 2021 by Gperlman (talk | contribs) (Removed redirect to MouseDrag event)
(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!
Event


Slider.MouseDrag(x as Integer, y as Integer)

Supported for all project types and targets.

This event fires continuously after the mouse button was pressed inside the Slider. Mouse location is local to the control passed in to x, y.

Notes

fa-info-circle-32.png
This event will not occur unless you return True in the MouseDown event first.

The parameters x and y are local coordinates, i.e. they represent the position of the mouse relative to the upper-left corner of the Slider.

As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.