Sign in Join
FPDoc Onlineexperiment

TControl.OnClick property

Member of TControlpublicIn unit Controls

Notification handler for mouse clicks.

Declaration

pascal
property OnClick: TNotifyEvent read FOnClick write FOnClick;

Description

A mouse click is associated with the default action for a control, and is often the only event handled in user code.

The action performed for a click can be specified by a user supplied method, or by selecting an Action from a supplied ActionList.

OnClick is signalled (when assigned) from the Click method. It occurs when an Action has not been assigned using the ActionLink for the control. When Action is assigned, the Execute method in the ActionLink is called.

See also

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