ToolTipText Property

Returns or sets a ToolTip string used by the ToolTip window when the mouse pointer is left not moving over the object for a period of time set in Windows.

Syntax

Object.ToolTipText [ = sToolTipText ]

The ToolTipText property syntax has the following parts:

 

Name

Type

Description

Object

A control

A control object

sToolTipText

BString

A string associated with an object that appears in a small rectangle below the object when the user's cursor hovers over the object at run time for about one second.

Comments

If only an image is used to label an object, ToolTipText can be used to explain each object with a few words. The text can be changed at run time by the application, using the OnMouseMove event, to give different results based on the location of the mouse on the object.

Example

The following statement changes the ASwitch's ToolTipText on the control selection panel to explain what the image of a switch is:

sw1.ToolTipText="Turn off the Power Supply power."

Applies to

All controls.

See Also

HelpContextID, ShowHelpContext, ShowWhatsThis, WhatsThisHelpID, WhatsThisHelpText