BIS fnc ctrlTextHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |r1=[[" to " |r1= [[")
m (Text replacement - "\|seealso= ?\[\[([^ ]+)\]\], *\[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 16: Line 16:
|x1= <code>[_ctrl] [[call]] [[BIS_fnc_ctrlTextHeight]];</code>
|x1= <code>[_ctrl] [[call]] [[BIS_fnc_ctrlTextHeight]];</code>


|seealso= [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]]
|seealso= [[ctrlCommitted]] [[ctrlSetPosition]], [[ctrlSetFade]]
}}
}}

Revision as of 22:38, 20 January 2022

Hover & click on the images for description

Description

Description:
Resize control according to it is text.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[control] call BIS_fnc_ctrlTextHeight
Parameters:
control: Control - The control which should changed
Return Value:
Boolean - true

Examples

Example 1:
[_ctrl] call BIS_fnc_ctrlTextHeight;

Additional Information

See also:
ctrlCommitted ctrlSetPositionctrlSetFade

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