Application.ShowTooltip

From Xojo Documentation

Shared Method

Application.ShowTooltip(tip As String, x As Integer, y As Integer, autoHide As Boolean)

New in 2019r2

Supported for all project types and targets.

Pops up the passed tip at the global coordinates given by x, y (relative to the screen). If AutoHide is True, then the tip will automatically hide itself; you do not have to call HideTooltip to hide it. The default is True.

Notes

AutoHide is used only on Windows and Linux; on macOS, the ToolTip hides automatically.

Examples

The following code is placed in the MouseDown event of a window. It uses the X and Y coordinates passed into the event.

App.ShowTooltip("This is my tip", Self.Left + X, Self.Top + Y)
Return True

The following code in the Action event of a PushButton displays the contents of a TextField as a tip.

App.ShowTooltip(TextField1.Value, System.MouseX, System.MouseY + 20)