Sign in Join
FPDoc Onlineexperiment

TControl.Click procedure

Member of TControlprotectedIn unit Controls

Signals OnClick and/or executes the ActionLink when the control has been clicked.

Declaration

pascal
procedure Click; virtual

Description

Performs actions needed when the control has been clicked using the mouse or its keyboard equivalent.

Click uses the value in ActionLink (when assigned) to determine whether OnClick and / or Action are executed for the control.

When ActionLink has been assigned, it is compared to the routine in the OnClick event handler (when assigned). When the routines differ, the OnCLick event handler is signalled. If an ActionLink exists, the Execute method in ActionLink is called as well.

Neither OnClick nor the ActionLink are executed at design-time.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.