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

TControl.Click

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

Declaration

Source position: controls.pp line 1490

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

TControl.OnClick

  

Notification handler for mouse clicks.

TControl.ActionLink

  

Link to the default Action associated with this control.

TBasicActionLink.Execute


Version 3.2 Generated 2024-02-25 Home