MouseDown, MouseMove, MouseUp Events
Syntax
Sub ControlName_MouseDown( Button As Integer, Shift As Integer, x As OLE_XPOS_PIXELS, y As OLE_YPOS_PIXELS)
Sub ControlName_MouseMove( Button As Integer, Shift As Integer, x As OLE_XPOS_PIXELS, y As OLE_YPOS_PIXELS)
Sub ControlName_MouseUp( Button As Integer, Shift As Integer, x As OLE_XPOS_PIXELS, y As OLE_YPOS_PIXELS)
Applies To
Purpose
MouseDown generates when you click the mouse on the control.
MouseMove generates when you move the mouse over the control.
MouseUp generates when you release the mouse on the control.
Remarks
For more information, refer to Visual Basic help.
Parameters
Button As Integer
Button which was pressed, released, or, in the case of a mouse move, which buttons are down. The Button argument is a bit field with bits corresponding to the left button (bit 0), right button (bit 1), and middle button (bit 2).
Shift As Integer
State of the <SHIFT> key, <ALT> key, and <CTRL> key. The Shift argument can be any combination of the following values: 1 for <SHIFT> , 2 for <CTRL> , or 4 for <ALT> . For example, if the <SHIFT> and <CTRL> keys are pressed, the value is 3 (1 + 2).
x As OLE_XPOS_PIXELS
Specifies the X coordinate of the current location of the pointer.
y As OLE_YPOS_PIXELS
Specifies the Y coordinate of the current location of the pointer.