Difference between revisions of "ctrlSetTooltipMaxWidth"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |game1= arma3 |version1= 2.06 |branch= dev " to " |game1= arma3 |version1= 2.06 ")
m (Some wiki formatting)
 
Line 16: 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