Arma 3 Scripting

Function in GUI

BIS_fnc_ctrlFitToTextHeight

Also available as Markdown and JSON, or read the original wiki page.

Description

Resize structured text control to fit its text height.

Syntax

[control,offset,time] call BIS_fnc_ctrlFitToTextHeight

Parameters:

Returns: Number - text height

Examples

Example 1

private _height = [_ctrl, 1.5, 3] call BIS_fnc_ctrlFitToTextHeight;

See also

ctrlCommitted · ctrlSetPosition · ctrlSetFade