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 | |
TdxNavBarXPSelectionPainter |
Used in the XP1View, and XP2View | |
TdxNavBarUltraFlatSelectionPainter |
Used in the Office2View, Office3View, and UltraFlatExplorerBarView | |
TdxNavBarVSToolBoxSelectionPainter |
Used in the VSToolBoxView |
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.