Events

The following events are exported by the control and may be used by the container:

DblClick() – mouse double click

KeyDown(short KeyCode, short Shift) – a key pressed down; KeyCode identifies the keycode and Shift represents the state of the shift key

KeyUp(short KeyCode, short Shift) – a key released

MouseDown(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_XPOS_PIXELS y) – a mouse button is pressed, Button identifies the mouse button, Shift represents the state of the shift key, a and y identify the location of mouse cursor.

MouseUp(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_XPOS_PIXELS y) – a mouse button is released.

 

 

More:

Macros for Microsoft Office