MouseWheel

Function Name c:<CONTROL-NAME>#OnMouseWheel
Syntax   (defun c:<CONTROL-NAME>#OnMouseWheel (Flags [as Bitflag] ZDelta [as Long] X [as Long] Y [as Long] /)
)
Return Type Ignored
Applies To Picture Box, Slide View

This event is triggered when the mouse wheel is moved while the mouse cursor is on the control. Flags describes the state of the [Shift] and [Ctrl] keys, and the mouse buttons. ZDelta is a positive or negative number representing the direction and magnitude of the change in the wheel position. X and Y specify the control client coordinates where the event occurred.

Flags bit Value Meaning
0 1 Left mouse button pressed
1 2 Right mouse button pressed
2 4 [Shift] key pressed
3 8 [Ctrl] key pressed
4 16 Middle mouse button pressed