Back to Devexpress

TcxButtonColors Class

vcl-cxbuttons-5cbd1092.md

latest1.8 KB
Original Source

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:

Inheritance

TObject TPersistent TcxButtonCustomPersistent TcxButtonColors

See Also

TcxCustomButton.Colors

TcxCustomButton.Glyph

TcxCustomButton.OnCustomDraw

TcxButtonColors Members

cxButtons Unit