TdxNavBarCustomScrollButtonsPainter Class
Serves as the base for painter classes used to draw NavBar scroll buttons.
Declaration
TdxNavBarCustomScrollButtonsPainter = class(
TObject
)
Remarks
This class provides the DrawTopButton and DrawBottomButton methods, which call virtual InternalDrawTopButton and InternalDrawBottomButton methods. TdxNavBarCustomScrollButtonsPainter descendants override InternalDrawTopButton and InternalDrawBottomButton methods to custom paint top and bottom scroll buttons.
TdxNavBarCustomScrollButtonsPainter descendants include:
Descendant | Comment | Example image |
|---|---|---|
| Used by the BaseView, FlatView, Office1View, Office2View, Office3View, and VSToolBoxView | A scroll button drawn by the BaseView:
|
| Used by the XP1View and XP2View | A scroll button drawn by the XP1View:
|
When you create a custom View for your NavBar control, you can provide your own painter for scroll buttons. In this case, use TdxNavBarCustomImagePainter as the base class for your painter and override InternalDrawTopButton and InternalDrawBottomButton methods to draw images as your needs dictate. Refer to the Registering Custom Views topic for more information.
Note
Explorer Bar Views do not support scroll buttons.

