Difference between revisions of "ctrlSetTooltipMaxWidth"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Some wiki formatting)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
|game1= arma3
 
|game1= arma3
 
|version1= 2.06
 
|version1= 2.06
 
|branch= dev
 
  
 
|descr= Set maximum width of a control's tooltip.
 
|descr= Set maximum width of a control's tooltip.
Line 18: Line 16:
 
|r1= [[Number]] - the previous maximum width of the tooltip
 
|r1= [[Number]] - the previous maximum width of the tooltip
  
|x1= <code>[[private]] _previousMaxWidth = _myControl [[ctrlSetTooltipMaxWidth]] [[SafeZoneW]]/2;</code>
+
|x1= <sqf>private _previousMaxWidth = _myControl ctrlSetTooltipMaxWidth (SafeZoneW / 2);</sqf>
  
 
|seealso= [[SafeZone]] [[SafeZoneW]]
 
|seealso= [[SafeZone]] [[SafeZoneW]]
 
}}
 
}}

Latest revision as of 18:44, 5 May 2022

Hover & click on the images for description

Description

Description:
Set maximum width of a control's tooltip.
Groups:
GUI Control

Syntax

Syntax:
ctrl ctrlSetTooltipMaxWidth width
Parameters:
ctrl: Control
width: Number - in screen measurement units
Return Value:
Number - the previous maximum width of the tooltip

Examples

Example 1:
private _previousMaxWidth = _myControl ctrlSetTooltipMaxWidth (SafeZoneW / 2);

Additional Information

See also:
SafeZone SafeZoneW

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