Skip to main content

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

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

Declaration

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