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

TcxCustomLookAndFeelPainter Class

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

#Declaration

Delphi
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