ToolTipText Property

Purpose

Specifies the text that appears as a ToolTip for an Ocx control. Available at design time and run time.

Syntax

Object.ToolTipText = Txt

Object:Ocx Object
Txt:sexp

Description

Specifies the text to use for the ToolTip. When the ToolTipText is assigned a value, a tooltip will be displayed when the mouse hovers over the object. The maximum number of characters you can specify for Txt$ is 79.

Example

OpenW Center 1, , , 300, 120

Local Int32 x = (300 - (Screen.cxFrame * 2) - 120) / 2, y = (120 - (Screen.cyFrame * 2) - Screen.cyCaption - 22) / 2

Ocx Command cmd = "OK", x, y, 120, 22 : cmd.ToolTipText = "Press to close window"

Do : Sleep : Until Win_1 Is Nothing

 

Sub cmd_Click

Win_1.Close

EndSub

Remarks

You can use this property to explain each object with a few words.

See Also

Form

{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}