Core Function ToolTip

From Sputnik Wiki
Revision as of 11:07, 27 November 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
ToolTip( <text>, <x>, <y> )

Contents

Description

Creates a tooltip anywhere on the screen.

text

The text of the tooltip. (An empty string will delete a displaying tooltip).

x, y

Optional; The x,y position of the tooltip.

Return Value

Returns the value of the previous setting.

Remarks

If the x and y coordinates are omitted the, tip is placed near the mouse cursor.

If the coords would cause the tooltip to run off screen, it is repositioned to visible.

Tooltip appears until it is cleared, until script terminates, or sometimes until it is clicked upon. You may use @CR or @LF to create multi-line tooltips.

Example

// This will create a tooltip in the upper left of the screen
ToolTip("This is a tooltip", 0, 0); // Create a tooltip
Sleep(2000); // Sleep to give tooltip time to display
ToolTip(""); // Remove the tooltip
 
 
// Same as above but this time place the tooltip at the mouse pointer
ToolTip("This is a tooltip"); // Create a tooltip
Sleep(2000); // Sleep to give tooltip time to display
ToolTip(""); // Remove the tooltip
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox