Skip to main content

TcxCustomLookAndFeelPainter Class

The base class for painter classes that are influenced by look and feel settings.

Declaration

TcxCustomLookAndFeelPainter = class(
    TPersistent
)

Remarks

TcxCustomLookAndFeelPainter descendants override the ancestor’s virtual methods to draw primitives based upon a specific look and feel style. For instance, the TcxWinXPLookAndFeelPainter class implements drawing primitives using the Windows® XP theme.

Controls are not aware of a particular painter class used to render them. They only know the interface of the TcxCustomLookAndFeelPainter class and call its virtual methods. These methods are used to draw various control UI elements:

  • Buttons: DrawButton, DrawButtonBorder, DrawExpandButton, DrawCheckButton, etc.

  • Headers: DrawHeader, DrawHeaderBorder, DrawHeaderPressed, etc.

  • Indicators: DrawIndicatorItem, DrawIndicatorImage, etc.

  • etc.

This concept provides flexibility when implementing various paint styles.

Inheritance

TObject
TPersistent
TcxCustomLookAndFeelPainter
See Also