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

# TColorButton.OnColorChanged

Event handler signalled when the button color has been changed.

## Declaration

Source position: dialogs.pp line 402

`published property TColorButton.OnColorChanged : TNotifyEvent read FOnColorChanged write FOnColorChanged;`

## Description

OnColorChanged is a TNotifyEvent property with the event handler signalled when the selected color in ButtonColor has been changed. An application must implement and assign an object procedure to the property to respond to the event notification.

OnColorChanged is signalled (when assigned) when a new TColor value is assigned to the ButtonColor property. A common use for the event handler is to update the value in Caption when the value in ButtonColor has been updated. OnColorchanged is not signalled during LCL component streaming (csLoading in ComponentState).

## See also

TColorButton.ButtonColor |  | The TColor value selected in the button control.
TColorButton.Caption |  | Text displayed next to the color block on the button control.
TNotifyEvent