ctrlSetTooltip: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets tooltip text of given control. |= Description
| Sets tooltip text of given control. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| control '''ctrlSetTooltip''' text |= Syntax
| control '''ctrlSetTooltip''' text |SYNTAX=


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


|p2= text: [[String]] |= Parameter 2
|p2= text: [[String]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_control [[ctrlSetTooltip]] "tooltip";</code> |= Example 1
|x1= <code>_control [[ctrlSetTooltip]] "tooltip";</code> |EXAMPLE1=
|x2= <code>[[findDisplay]] 10000 [[displayCtrl]] 10001 [[ctrlSetTooltip]] "ThisIsAGoodTip";</code> |= Example 2
|x2= <code>[[findDisplay]] 10000 [[displayCtrl]] 10001 [[ctrlSetTooltip]] "ThisIsAGoodTip";</code> |EXAMPLE2=


|x3= <code>[[with]] [[uiNamespace]] [[do]]  
|x3= <code>[[with]] [[uiNamespace]] [[do]]  
Line 29: Line 29:
bar [[progressSetPosition]] 0.75;
bar [[progressSetPosition]] 0.75;
bar [[ctrlSetTooltip]] "lalalalalalalala";
bar [[ctrlSetTooltip]] "lalalalalalalala";
};</code> |= Example 3
};</code> |EXAMPLE3=
____________________________________________________________________________________________
____________________________________________________________________________________________


|[[ctrlSetTooltipColorBox]], [[ctrlSetTooltipColorShade]], [[ctrlSetTooltipColorText]]  |= See also
|[[ctrlSetTooltipColorBox]], [[ctrlSetTooltipColorShade]], [[ctrlSetTooltipColorText]]  |SEEALSO=


}}
}}

Revision as of 15:37, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Sets tooltip text of given control.
Groups:
Uncategorised

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

Notes

Bottom Section

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.