ctrlSetTooltip: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| arma1 \|1.00 \|([^g]|g[^a])" to "| arma1 |1.00 |game2= arma2 |version2= 1.00 |game3= arma2oa |version3= 1.50 |game4= tkoh |version4= 1.00 |game5= arma3 |version5= 0.50 |$1")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
Line 21: Line 21:
{{Feature | Informative | If control supports URL property, like <tt>RscActiveText</tt> for example, and the URL is set, tooltip text displayed on mouse over will be appended with URL text.}}
{{Feature | Informative | If control supports URL property, like <tt>RscActiveText</tt> for example, and the URL is set, tooltip text displayed on mouse over will be appended with URL text.}}


| control '''ctrlSetTooltip''' text
|s1=  control '''ctrlSetTooltip''' text


|p1= control: [[Control]] - Any [[Dialogs|control type]], (except for CT_STATIC & CT_STRUCTURED_TEXT, although Arma 3 now supports these too)
|p1= control: [[Control]] - Any [[Dialogs|control type]], (except for CT_STATIC & CT_STRUCTURED_TEXT, although Arma 3 now supports these too)

Revision as of 22:58, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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:
findDisplay 10000 displayCtrl 10001 ctrlSetTooltip "ThisIsAGoodTip";
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

See also:
ctrlSetTooltipColorBoxctrlSetTooltipColorShadectrlSetTooltipColorText

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: _ctrl ctrlSetTooltip "Your text\nYour text on next line"; Localization files (stringtable.xml) also supports that.