Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Draws a hint message for NavBar groups and links.

#Declaration

Delphi
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