vcl-cxbuttons-dot-tcxcustombutton-839135b8.md
Contains a list of background and foreground colors, representing different button states.
property Colors: TcxButtonColors read; write;
| Type |
|---|
| TcxButtonColors |
Use the Colors property to specify the color used for painting a button’s background, based on the button state: default, normal, disabled, hot-tracked, and pressed.
Another way to distinguish different button states is to use the Glyph property.
Note
When a button is painted using the native style, the Colors property settings are not in effect. The native paint style is applied to a button when:
The button’s LookAndFeel.NativeStyle property is set to True.
The button’s LookAndFeel.Kind property is set to lfStandard and the UseSystemPaint property is set to True.
See Also