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

TColorButton.ShowColorDialog

Displays a Color dialog and captures its result.

Declaration

Source position: dialogs.pp line 354

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

TColorButton.ButtonColor

  

The TColor value selected in the button control.

TColorButton.ColorDialog

  

The color selection dialog displayed when the control is clicked, or the ShowColorDialog method is called.

TCommonDialog.Execute

  

Displays the dialog and captures the result.


Version 4.0 Generated 2025-05-03 Home