BIS fnc ctrlTextHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| a3
|game1= arma3
 
|version1= 1.00
|1.00


|gr1= GUI
|gr1= GUI


| Resize control according to it is text.
|descr= Resize control according to it is text.


| [control] call [[BIS_fnc_ctrlTextHeight]]
|s1= [control] call [[BIS_fnc_ctrlTextHeight]]


|p1= control: [[Control]] - The control which should changed
|p1= control: [[Control]] - the control which should changed


|r1= [[Boolean]] - [[true]]


| [[Boolean]] - [[true]]
|x1= <sqf>[_ctrl] call BIS_fnc_ctrlTextHeight;</sqf>


|x1= <code>[_ctrl] [[call]] [[BIS_fnc_ctrlTextHeight]];</code>
|seealso= [[ctrlCommitted]] [[ctrlSetPosition]] [[ctrlSetFade]]
 
| [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:ctrlTextHeight}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:ctrlTextHeight}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ctrlTextHeight}}]]

Latest revision as of 15:51, 8 November 2023

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 ctrlSetPosition ctrlSetFade

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