ObjectDCL Banner

OnMouseWheel Event

Description

Indicates that the user scrolled the mouse wheel over the control.

Parameters

nFlags
Integer identifying the state of the mouse buttons.
nZDelta
Integer identifying the distance the wheel rolled.
nX
Integer identifying the X-axis coordinate of the cursor.
nY
Integer identifying the Y-axis coordinate of the cursor.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnMouseWheel 
                   (nFlags [as Integer] nZDelta [as Integer] 
                    nX [as Integer] nY [as Integer] /)
     
)

Applies For

PictureBox, SlideView.

Example

CopyCode imageCopy Code
; React to the mouse wheel
(defun c:MyForm_MyControl_OnMouseWheel (nFlags nZDelta nX nY /)
     (princ "OnMouseWheel(")
     (princ nFlags)
     (princ ", ")
     (princ nZDelta)
     (princ ", ")
     (princ nX)
     (princ ", ")
     (princ nY)
     (princ ")\n")
)