TColorPicker displays a text box for color input purpose.
Next to the textbox there's a button filled with the current chosen color.
Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF).
Alternatively, if the ShowColorPicker property is enabled (it is by default), users can click the button
to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker.
TColorPicker has three different color picker UI Modes:
- Simple - Grid with 12 simple colors.
- Basic - Grid with the most common 70 colors. This is the default mode.
- Full - Full-featured color picker.
The CssClass property can be used to override the CSS class name
for the color picker panel. The ColorStyle property changes the overall color picker style.
The following ColorStyle values are available:
- default - The default color picker style.
If the Mode property is set to Full, the color picker panel will
display an "Ok" and "Cancel" buttons. You can customize the button labels setting the OKButtonText
and CancelButtonText properties.