Skip to main content

TdxNavBarCustomSelectionPainter Class

Serves as the base for painter classes used to draw selection within a NavBar control.

Declaration

TdxNavBarCustomSelectionPainter = class(
    TObject
)

Remarks

The selection is used to draw the background of pressed, selected and hot-tracked links. The TdxNavBarCustomSelectionPainter class provides the DrawSelection method, which calls the virtual InternalDrawSelection method. TdxNavBarCustomSelectionPainter descendants override the InternalDrawSelection method to custom paint the selection.

TdxNavBarCustomSelectionPainter descendants include:

Descendant Comment Example
TdxNavBarBaseSelectionPainter Used in the BaseView, FlatView, and Office1View NavBar Selection
TdxNavBarXPSelectionPainter Used in the XP1View, and XP2View NavBar XP Selection
TdxNavBarUltraFlatSelectionPainter Used in the Office2View, Office3View, and UltraFlatExplorerBarView NavBar UltraFlat
TdxNavBarVSToolBoxSelectionPainter Used in the VSToolBoxView NavBar VS ToolBox

When you create a custom View for your NavBar control, you can provide your own painter for the selection. In this case, use TdxNavBarCustomSelectionPainter or its descendant as the base class for your painter and override the InternalDrawSelection method to draw the selection as your needs dictate. Refer to the Registering Custom Views topic for details.

Inheritance

TObject
TdxNavBarCustomSelectionPainter
See Also