Sign in Join
FPDoc Onlineexperiment

TControl.MouseInClient property

Member of TControlpublicIn unit Controls

True when the mouse is in the client area for the control.

Declaration

pascal
property MouseInClient: Boolean read FMouseInClient;

Description

MouseInClient is a read-only Boolean property which indicates if the mouse pointer has entered the client area for the control. The value for the property is updated when CM_MOUSEENTER or CM_MOUSELEAVE messages are handled for the control. The property value is set to True in CMMouseEnter, and set to False in CMMouseLeave.

Use the OnMouseEnter or OnMouseLeave event handlers to perform actions needed when the mouse control messages are handled for the control.

See also

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