Back to Devexpress

TcxCustomButton.Colors Property

vcl-cxbuttons-dot-tcxcustombutton-839135b8.md

latest1.5 KB
Original Source

TcxCustomButton.Colors Property

Contains a list of background and foreground colors, representing different button states.

Declaration

delphi
property Colors: TcxButtonColors read; write;

Property Value

Type
TcxButtonColors

Remarks

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:

  1. The button’s LookAndFeel.NativeStyle property is set to True.

  2. The button’s LookAndFeel.Kind property is set to lfStandard and the UseSystemPaint property is set to True.

See Also

TcxButtonColors

TcxCustomButton.Glyph

TcxCustomButton Class

TcxCustomButton Members

cxButtons Unit