Window.MouseWheel

From Xojo Documentation

Event


Window.MouseWheel(X as Integer,Y as Integer, DeltaX as Integer, DeltaY as Integer) As Boolean

Supported for all project types and targets.

The mouse wheel has been moved.

Notes

The parameters X and Y are the mouse coordinates relative to the control that has received the event. The parameters DeltaX and DeltaY hold the number of scroll lines the wheel has been moved horizontally and vertically, as defined by the operating system. DeltaX is positive when the user scrolls right and negative when scrolling to the left. DeltaY is positive when the user scrolls down and negative when scrolling up. Returns a Boolean. Return True to prevent the event from propagating further.