Sign in Join
FPDoc Onlineexperiment

TColorButton.Click procedure

Member of TColorButtonpublicIn unit Dialogs

Performs actions needed when the control is clicked.

Declaration

pascal
procedure Click; override

Description

Click is an overridden method in TColorButton used to perform actions needed when the control is clicked or the Space key is pressed when the control has focus. It calls the inherited method on entry to execute the Action for the control, or signal its OnClick event handler (when assigned). It calls the ShowColorDialog method to configure, display, and execute the ColorDialog for the control. ButtonColor is updated to contain the new color selected when the dialog was executed.

See also

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