ctrlSetTooltip: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 25: | Line 25: | ||
|x3= <code>[[with]] [[uiNamespace]] [[do]] | |x3= <code>[[with]] [[uiNamespace]] [[do]] | ||
{ | { | ||
bar = [[findDisplay]] 46 [[ | bar = [[findDisplay]] 46 [[createDisplay]] "RscDisplayEmpty" [[ctrlCreate]] ["RscProgress", -1]; | ||
bar [[ctrlSetPosition]] [0,0,1,0.01]; | bar [[ctrlSetPosition]] [0,0,1,0.01]; | ||
bar [[ctrlCommit]] 0; | bar [[ctrlCommit]] 0; |
Revision as of 22:45, 13 April 2017
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
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