Arma 3 Scripting

Command in GUI Control

ctrlTextHeight

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

Description

Returns the text control's height. Supported control types:

Syntax

ctrlTextHeight control

Parameters:

Returns: Number

Examples

Example 1

_h = ctrlTextHeight _ctrl;

See also

ctrlFontHeight · ctrlTextWidth · ctrlSetText · ctrlType · Arma: GUI Configuration

Community notes

Nelis75733126

In Arma 3 v1.70, this command always returns 0 if the definition for width of the control ( inside .hpp or .cpp file ) is missing.