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

TcxCustomHintStyleController.ShowHint(Integer,Integer,string,string,Integer) Method

Displays a hint window, already pre-configured, at a specified position on screen.

#Declaration

Delphi
procedure ShowHint(X: Integer; Y: Integer; ACaption: string; AHint: string; AMaxWidth: Integer = 0);

#Parameters

Name Type
X Integer
Y Integer
ACaption string
AHint string
AMaxWidth Integer

#Remarks

Calling this method hides the hint that was invoked previously. If you need to hide the currently active hint, use the HideHint method.

The X and Y parameters specify the hint’s top-left corner position. They represent the horizontal and vertical screen coordinates respectively.

The ACaption and AHint parameters specify strings that will be displayed as the hint’s caption and body. If you don’t need to display a caption, pass an empty string as the ACaption parameter. To modify the caption of the displayed hint, use the HintWindow.Caption property.

The AMaxWidth parameter specifies the maximum width of a hint window (in pixels). 0 indicates that its width is limited by the screen width.

Note

The ShowHint method doesn’t fire the OnShowHintEx event.

See Also