Sign in Join
FPDoc Onlineexperiment

TColorButton.ShowColorDialog procedure

Member of TColorButtonprotectedIn unit Dialogs

Displays a Color dialog and captures its result.

Declaration

pascal
procedure ShowColorDialog; virtual

Description

ShowColorDialog is a method used to display a TColorDialog and capture its result.

ShowColorDialog uses an existing dialog instance in ColorDialog when assigned. Otherwise, a new TColorDialog instance is created and temporarily stored in the property. The value in ButtonColor is used as the default color value in the dialog. The Execute method in the dialog is called to get the selected TColor value, and it is stored in the ButtonColor property.

See also

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