ToolTip.Show

From Xojo Documentation

Shared Method

ToolTip.Show(tip As String, x As Integer, y As Integer, autoHide As Boolean)

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 Hide 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.

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

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

ToolTip.Show(TextField1.Text, System.MouseX, System.MouseY + 20)