Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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