Sign in Join
FPDoc Onlineexperiment

TControl.CMHitTest procedure

Member of TControlprotectedIn unit Controls

Handles the CM_HITTEST message for the control.

Declaration

pascal
procedure CMHitTest(var Message: TCMHitTest); message

Arguments

Message

Message with the result for the hit test.

Description

The hit test handler determines if the control was located at the mouse position for the test. Sets the Result member in Message to 1 if it was received by the control.

Descendent control may reimplement the method to check for a specific area on the control, like a border or a dock site.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.