BIS fnc ctrlTextHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| tkoh |= Game name
|gr1= GUI


|1.00|= Game version
|descr= Resize control according to it is text.
____________________________________________________________________________________________


| <pre>/*
|s1= [control] call [[BIS_fnc_ctrlTextHeight]]


Description:
|p1= control: [[Control]] - the control which should changed
Resize control according to it's text


Parameter(s):
|r1= [[Boolean]] - [[true]]
_this select 0: CONTROL


Returns:
|x1= <sqf>[_ctrl] call BIS_fnc_ctrlTextHeight;</sqf>
BOOL - true
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_ctrlTextHeight]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[ctrlCommitted]] [[ctrlSetPosition]] [[ctrlSetFade]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:ctrlTextHeight}}]]
[[Category:Functions|{{uc:ctrlTextHeight}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:ctrlTextHeight}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ctrlTextHeight}}]]

Latest revision as of 16: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