Occurs when the user moves the mouse over an object.
Syntax
object_MouseMove(ByVal Button As Integer, ByVal Shift As Long, ByVal X As Double, ByVal Y As Double)
Properties
The MouseMove event syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
Button |
An integer value that identifies which mouse button was pressed. |
Shift |
The state of the SHIFT, CTRL, and ALT keys. |
X |
The horizontal position, in postscript points or logical units, from the left or top edge of the page where the mouse was pressed. |
Y |
The vertical position, in postscript points or logical units, from the left or top edge of the page where the mouse was pressed. |
Settings
The settings for Button are:
Value |
Description |
1 |
The left button was pressed. |
2 |
The right button was pressed. |
4 |
The middle button was pressed. |
The settings for Shift are:
Value |
Description |
1 |
SHIFT was pressed. |
2 |
CTRL was pressed. |
3 |
SHIFT and CTRL were pressed. |
4 |
ALT was pressed. |
5 |
ALT and SHIFT were pressed. |
6 |
ALT and CTRL were pressed. |
7 |
ALT, SHIFT, and CTRL were pressed. |
Remarks
Mouse events are sent to the selected object first. If there is no event script tied to the selected object, then the event is sent to the object's container (group or page).