Sign in Join
FPDoc Onlineexperiment

TCustomShape.CMShapeHitTest procedure

Member of TCustomShapeprotectedIn unit ExtCtrls

Handles a CM_MASKHITTEST message for the control.

Declaration

pascal
procedure CMShapeHitTest(var Message: TCMHitTest); message

Arguments

Message

Control message with the parent screen coordinates for the mouse event.

Description

Converts the parent screen coordinates in Message to client coordinates for the control. It calls PtInShape and updates the Result member in Message to indicate whether the mouse click occurred on the interior of the shape on the control. 0 indicates that the mouse event was inside or on the Shape. 1 indicates that the event was outside of the area for the Shape.

See also

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