Documentation/FbTooltip
class

FbTooltip

js/foo_uie_jsplitter.js:4033
property

Text

js/foo_uie_jsplitter.js:4038
Text: string

Note: this also updates text on the active tooltip i.e. there is no need to manually cycle Deactivate()/Activate() to update text.

Example

let tooltip = window.Tooltip;
tooltip.Text = "Whoop";
property

TrackActivate

js/foo_uie_jsplitter.js:4051
TrackActivate: boolean
method

Activate

js/foo_uie_jsplitter.js:4054
Activate()

Note: only do this when text has changed, otherwise it will flicker.

Example

let text = "...";
if (tooltip.Text != text) {
   tooltip.Text = text;
   tooltip.Activate();
}
method

Deactivate

js/foo_uie_jsplitter.js:4068
Deactivate()
method

GetDelayTime

js/foo_uie_jsplitter.js:4071
GetDelayTime(type)

Parameters

NameTypeDescription
typenumber

Returns

number
method

SetDelayTime

js/foo_uie_jsplitter.js:4077
SetDelayTime(type, time)

Parameters

NameTypeDescription
typenumber

See module:Flags > Used in GetDelayTime and SetDelayTime

timenumber
method

SetFont

js/foo_uie_jsplitter.js:4083
SetFont(font_name, font_size_px, font_style)

Parameters

NameTypeDescription
font_namestring
font_size_px = 12optionalnumber
font_style = 0optionalnumber

See FontStyle flags

method

SetMaxWidth

js/foo_uie_jsplitter.js:4090
SetMaxWidth(width)

Use if you want multi-line tooltips.
Use \n as a new line separator.

Parameters

NameTypeDescription
widthnumber

Example

tooltip.SetMaxWidth(800);
tooltip.Text = "Line1\nLine2";
method

TrackPosition

js/foo_uie_jsplitter.js:4102
TrackPosition(x, y)

Note: check that x, y positions have changed from the last invocation, otherwise it will flicker.
Note 2: ensure that the tooltip does not overlap the mouse pointer, otherwise it will glitch out.

Parameters

NameTypeDescription
xnumber
ynumber