Skip to main content

TdxNavBarCustomHintPainter.DrawHint(TCanvas,TRect,string,TPicture,TColor,TColor,Byte,Byte,TdxBarStyleGradientMode,TFont,TdxScaleFactor) Method

Draws a hint message for NavBar groups and links.

Declaration

class procedure DrawHint(ACanvas: TCanvas; ARect: TRect; AHint: string; APicture: TPicture; AColor1: TColor; AColor2: TColor; AAlphaBlend1: Byte; AAlphaBlend2: Byte; AGradientMode: TdxBarStyleGradientMode; AFont: TFont; AScaleFactor: TdxScaleFactor);

Parameters

Name Type
ACanvas TCanvas
ARect TRect
AHint string
APicture TPicture
AColor1 TColor
AColor2 TColor
AAlphaBlend1 Byte
AAlphaBlend2 Byte
AGradientMode TdxBarStyleGradientMode
AFont TFont
AScaleFactor TdxScaleFactor

Remarks

You can use this method to custom paint NavBar group and link hints via the OnCustomDraw.GroupHint and OnCustomDraw.LinkHint events.

The TdxNavBarHintPainter class draws a hint on the ACanvas surface within the rectangular region specified by the ARect parameter. The text of the hint is specified by the AHint parameter. AFont determines the font used to paint the hint text.

Other parameters are used to fill the hint background. The DrawHint method invokes the TdxNavBarCustomBackgroundPainter.DrawBackground class method. Refer to its description for details.

Use the AScaleFactor parameter to scale the background.

See Also