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

TCustomShape.CMShapeHitTest

Handles a CM_MASKHITTEST message for the control.

Declaration

Source position: extctrls.pp line 290

protected procedure TCustomShape.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

TCustomShape.PtInShape

  

Determines whether the coordinates for the specified Point are within the area for the shaped control.

TControl.ParentToClient

  

Converts the specified client coordinates on a parent control to the client coordinates for the control instance.

TCMHitTest

  

Alias for the TLMNCHitTest type.


Version 4.0 Generated 2025-05-03 Home