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

# TCustomShape.OnShapeClick

Event handler signalled for a mouse click within the shaped control.

## Declaration

Source position: extctrls.pp line 302

`public property TCustomShape.OnShapeClick : TNotifyEvent read FOnShapeClick write FOnShapeClick;`

## Description

OnShapeClick is a TNotifyEvent property with the event handler signalled if a mouse click occurs on the shaped control.

OnShapeClick is signalled (when assigned) from the Click method, and occurs after the OnClick handler has been signalled and an optional Action assigned to the control has been executed. The event handler is not signalled if PtInShape indicates that the mouse click did not occur within the interior of the shape on the control.

An application must implement and assign a routine to the handler to respond to the event notification.

## Version info

Added in LCL version 4.0.

## See also

TCustomShape.Click |  | Performs actions needed when a mouse click event occurs on the shaped control.
TCustomShape.PtInShape |  | Determines whether the coordinates for the specified Point are within the area for the shaped control.
TControl.OnClick |  | Notification handler for mouse clicks.
TControl.Action |  | The Action associated with the control.
TNotifyEvent