DicomObjects Reference
DicomObjects Reference / DicomViewer Object / MouseWheel Event
State of the Ctrl, Shift and Alt keys
The direction and distance scrolled
The mouse position, relative to the DicomViewer control.
The mouse position, relative to the DicomViewer control.
In This Topic
    MouseWheel Event
    In This Topic
    Description
    fired when the Mouse Wheel is turned (only if UseMouseWheel is true)
    Syntax
    Visual Basic
    Public Event MouseWheel( _
       ByVal Shift As Long, _
       ByVal Delta As Integer, _
       ByVal x As Long, _
       ByVal y As Long _
    )
    Parameters
    Shift
    State of the Ctrl, Shift and Alt keys
    Delta
    The direction and distance scrolled
    x
    The mouse position, relative to the DicomViewer control.
    y
    The mouse position, relative to the DicomViewer control.
    Remarks

    This is essentially a Microsoft standard wheel event, except that the x and y positions are specified as long integers representing display pixels rather than OLE_PIXELS.  The value of delta is normally a positive or negative multiple of 120, (120 for each click), but might be less in future Windows implementations with a smooth scrolling mouse wheel.

    Important: In previous versions of DicomObjects, MouseWheel events were converted internally to scroll events, and to maintain backwards compatibility, this remains the default behaviour.  Therefore, to enable this event, the UseMouseWheel property of the viewer must be set explicitly to true.

    See Also