Sign in Join
FPDoc Onlineexperiment

TControl.OnMouseLeave property

Member of TControlprotectedIn unit Controls

Event handler signalled when the mouse pointer has left the control.

Declaration

pascal
property OnMouseLeave: TNotifyEvent read FOnMouseLeave write FOnMouseLeave;

Description

OnMouseLeave is a TNotifyEvent property with the event handler signalled when the mouse pointer has left the bounds for the control. OnMouseLeave is signalled from the MouseLeave method (when assigned), and occurs after the Parent control has been notified of the event. The Sender argument contains the control for the notification, and must be cast to a TControl type to access the properties or values specific to the class type.

Use OnMouseEnter to perform actions needed when the mouse pointer has entered the bounds for the control.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.