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

TcxButtonColors Class

Contains a list of colors, which represent different button states.

#Declaration

Delphi
TcxButtonColors = class(
    TcxButtonCustomPersistent
)

#Remarks

TcxButton states (normal, disabled, hot-tracked, pressed, and Default) can be represented by:

  • Assigning state images using the button’s Glyph property.

  • Specifying background and foreground colors for these states via the button’s Colors property. This property provides access to an instance of the TcxButtonColors class.

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 if any of the following conditions are met:

See Also