Mouse events occur when a mouse action, such as pressing down or clicking a mouse button, occurs.
Event | Event property | It occurs |
---|---|---|
Click | OnClick (forms, controls) | For a control, this event occurs when you press and then release (click) the left mouse button on a control.
For a form, this event occurs when you click a record selector or an area outside a section or control. |
DblClick | OnDblClick (forms, controls) | When you press and release (click) the left mouse button twice on a control or its label.
For a form, this event occurs when you double-click on a blank area or record selector on the form. |
MouseDown | OnMouseDown (forms, controls) | When you press a mouse button while the pointer is on a form or control.
Canceling the MouseDown event using the CancelEvent action in a macro for a form or control prevents the shortcut menu from being displayed when you right-click the form or control. |
MouseMove | OnMouseMove (forms, controls) | When you move the mouse pointer over a form, form section, or control. |
MouseUp | OnMouseUp (forms, controls) | When you release a pressed mouse button while the pointer is on a form or control. |