ctrlSetTooltip: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "<dd class="note">([^}]*)<code>([^<]*)<\/code>" to "<dd class="note">$1<sqf>$2</sqf>") |
||
Line 52: | Line 52: | ||
<dd class="note"> | <dd class="note"> | ||
'''NOTE''': If you want to recieve a multi-line tooltip, you can simply input newline escape symbol in your text: | '''NOTE''': If you want to recieve a multi-line tooltip, you can simply input newline escape symbol in your text: | ||
< | <sqf>_ctrl ctrlSetTooltip "Your text\nYour text on next line";</sqf> | ||
Localization files (stringtable.xml) also supports that. | Localization files (stringtable.xml) also supports that. | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 10:57, 13 May 2022
Description
- Description:
- Sets tooltip text of given control.
- Groups:
- GUI Control
Syntax
- Syntax:
- control ctrlSetTooltip text
- Parameters:
- control: Control - Any control type, (except for CT_STATIC & CT_STRUCTURED_TEXT, although Arma 3 now supports these too)
- text: String
- Return Value:
- Nothing
Examples
- Example 1:
- _control ctrlSetTooltip "tooltip";
- Example 2:
- Example 3:
- with uiNamespace do { bar = findDisplay 46 createDisplay "RscDisplayEmpty" ctrlCreate ["RscProgress", -1]; bar ctrlSetPosition [0,0,1,0.01]; bar ctrlCommit 0; bar progressSetPosition 0.75; bar ctrlSetTooltip "lalalalalalalala"; };
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on September 26, 2017 - 08:08 (UTC)
- Demellion
-
NOTE: If you want to recieve a multi-line tooltip, you can simply input newline escape symbol in your text:
Localization files (stringtable.xml) also supports that._ctrl ctrlSetTooltip "Your text\nYour text on next line";
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control