TdxNavBarCustomButtonPainter Class
Serves as the base for painter classes used to draw group header buttons in NavBar controls.
#Declaration
TdxNavBarCustomButtonPainter = class(
TObject
)
#Remarks
This class provides the DrawButton method, which calls the virtual InternalDrawButton
method. TdxNavBarCustomButtonPainter
descendants override the InternalDrawButton
method to custom paint group header buttons.
When you create a custom View for your NavBar control, you can provide your own painter of NavBar buttons. In this case, use TdxNavBarCustomButtonPainter
or its descendant as the base class for your painter and implement the DrawButton method to draw the background as your needs dictate. Refer to the Registering Custom Views topic for more information.
The following table lists TdxNavBarCustomButtonPainter
descendants and corresponding Views which use these painters. The last column shows the sample rectangles rendered by the DrawButton method. The method parameters were set as follows:
AColor1 to clBtnFace
AColor2 to clBtnFace
AAlphaBlend1 to 255
AAlphaBlend2 to 255
AState to [sSelected]
Descendant | Comment | Example |
---|---|---|
Tdx |
Used in Base |
![]() |
Tdx |
Used in Flat |
![]() |
Tdx |
Used in VSTool |
![]() |
Tdx |
Used in Office1View, Office2View and Office3View | ![]() |
Tdx |
Used in XP2View | ![]() |
Tdx |
Used in Explorer |
![]() |
Tdx |
Used in Office11Navigation |
![]() |
Tdx |
Used in Office11Navigation |
![]() |
Tdx |
Used in Adv |
![]() |
Tdx |
Used in XPExplorer |
![]() |