Skip to main content

TdxNavBarCustomScrollButtonsPainter.DrawBottomButton(TCanvas,TRect,TdxNavBarCustomButtonPainterClass,TColor,TColor,Byte,Byte,TdxBarStyleGradientMode,TColor,TdxNavBarObjectStates,TdxScaleFactor) Method

Draws a bottom scroll button.

Declaration

class procedure DrawBottomButton(ACanvas: TCanvas; ARect: TRect; AButtonPainterClass: TdxNavBarCustomButtonPainterClass; AColor1: TColor; AColor2: TColor; AAlphaBlend1: Byte; AAlphaBlend2: Byte; AGradientMode: TdxBarStyleGradientMode; ABorderColor: TColor; AState: TdxNavBarObjectStates; AScaleFactor: TdxScaleFactor);

Parameters

Name Type
ACanvas TCanvas
ARect TRect
AButtonPainterClass TdxNavBarCustomButtonPainterClass
AColor1 TColor
AColor2 TColor
AAlphaBlend1 Byte
AAlphaBlend2 Byte
AGradientMode TdxBarStyleGradientMode
ABorderColor TColor
AState TdxNavBarObjectStates
AScaleFactor TdxScaleFactor

Remarks

The TdxNavBarBaseScrollButtonsPainter class implements the DrawBottomButton method in the following manner:

  • Calls the DrawButton class method of the AButtonPainterClass class passing it the ARect, AColor1, AColor2, AAlphaBlend1, AAlphaBlend2, AGradientMode, ABorderColor, AState, and AScaleFactor parameters. This method renders the button within a given rectangle with the specified color, alpha-blending and gradient settings, and scales the button. Refer to the DrawButton method description for details.

  • Draws a down arrow on the button surface with the color based on the button’s state (AState).

The TdxNavBarXPScrollButtonsPainter class draws a scroll button using the current XP theme. If the operating system does not support XP themes, the system-defined scroll button is used.

See Also