DicomObjects Reference
DicomObjects Reference / DicomViewer Object / MouseDown Event
Represents the mouse button pressed or released
State of the Ctrl, Shift and Alt keys
The mouse position, relative to the DicomViewer control.
The mouse position, relative to the DicomViewer control.
In This Topic
    MouseDown Event
    In This Topic
    Description
    Fired on mouse down
    Syntax
    Visual Basic
    Public Event MouseDown( _
       ByVal Button As Integer, _
       ByVal Shift As Integer, _
       ByVal x As Long, _
       ByVal y As Long _
    )
    Parameters
    Button
    Represents the mouse button pressed or released
    Shift
    State of the Ctrl, Shift and Alt keys
    x
    The mouse position, relative to the DicomViewer control.
    y
    The mouse position, relative to the DicomViewer control.
    Remarks
    These events are essentially Microsoft standard mouse events, except that the x and y positions are specified as long integers representing display pixels rather than OLE_PIXELS.  This avoids the transformations applied by some clients such as Visual Basic, guaranteeing that the values are compatible with DicomObject’s scrolling and drawing functions. 
    Due to a bug in Visual Basic, DicomViewer controls placed on a VB form do not receive events related to pressing arrow keys.
    See Also