BIS fnc ctrlTextHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
|descr= Resize control according to it is text.
|descr= Resize control according to it is text.


|s1=[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]]
|r1= [[Boolean]] - [[true]]
Line 16: Line 16:
|x1= <sqf>[_ctrl] call BIS_fnc_ctrlTextHeight;</sqf>
|x1= <sqf>[_ctrl] call BIS_fnc_ctrlTextHeight;</sqf>


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

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