[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.MouseInClient

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

Declaration

Source position: controls.pp line 1817

public property TControl.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

TControl.ClientRect

  

Size of the client area for the control.

TControl.CMMouseEnter

  

Handles a CM_MOUSEENTER message for the control.

TControl.CMMouseLeave

  

Handles a CM_MOUSELEAVE message for the control.

TControl.MouseEnter

  

Signals the OnMouseEnter event handler (when assigned).

TControl.OnMouseEnter

  

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

TControl.MouseLeave

  

Signals the OnMouseLeave event handler (when assigned).

TControl.OnMouseLeave

  

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


Version 3.2 Generated 2024-02-25 Home