Skip to main content

TcxStyleController Class

Represents the base class for objects managing style attributes common to several components.

Declaration

TcxStyleController = class(
    TcxScalableComponent
)

Remarks

A style controller manages style properties common to several components. When a style is assigned a style controller, it is automatically registered as a listener of this style controller. Thus, when you change properties via a style controller, all style objects will receive corresponding notifications and repaint their components as necessary. Use the Styles property to access a specific style and call the RestoreStyles method to restore the default values to all the style attributes of every style object.

The TcxStyleController is the base class for TcxEditStyleController which allows you to define style properties common to several editors.

See Also