Arma 3 Scripting

Command in GUI Control

ctrlStyle

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

Description

Returns the provided control's style. See Arma: GUI Configuration#Control Styles.

Syntax

ctrlStyle control

Parameters:

Returns: Number - see Arma: GUI Configuration#Control Styles

Examples

Example 1

private _ctrlStyle = ctrlStyle _myControl;

private _bitFlags = _ctrlStyle call BIS_fnc_bitflagsToArray;
if (2 in _bitFlags) then
{
    hint "This control has centered text!";
};

See also

ctrlType · BIS_fnc_bitflagsToArray