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

TColorButton.ButtonColor

The TColor value selected in the button control.

Declaration

Source position: dialogs.pp line 370

published property TColorButton.ButtonColor : TColor
  read FButtonColor
  write SetButtonColor;

Description

ButtonColor is a TColor property which contains the selected color for the button control.

The value in ButtonColor is used as the initial selected color value when the ColorDialog is displayed in the ShowColorDialog method. It is updated with the newly selected color value when the ColorDialog is executed.

Setting a new value for the property causes the OnColorChanged event handler to be signalled (when assigned) and the control is redrawn.

Use Color to set the color used for the button face on the control.

See also

TColorButton.ColorDialog

  

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

TColorButton.ShowColorDialog

  

Displays a Color dialog and captures its result.

TColorButton.OnColorChanged

  

Event handler signalled when the button color has been changed.

TColorButton.Click

  

Performs actions needed when the control is clicked.

TColor

  

Color type used by most LCL drawing functions.


Version 4.0 Generated 2025-05-03 Home