Arma 3 Scripting

Command in GUI Control

ctrlEnabled

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

Description

Returns if a control on the currently active user dialog is enabled. Disabled controls cannot be focused. Read Arma: GUI Configuration for more information about user dialogs and controls.

Syntax

Syntax 1

ctrlEnabled idc

Parameters:

Returns: Boolean - true if the control is enabled, false if not

Syntax 2

ctrlEnabled controlName

Parameters:

Returns: Boolean - true if the control is enabled, false if not

Examples

Example 1

if !(ctrlEnabled 100) then
{
    ctrlEnable [100, true];
};

Example 2

_enabled = ctrlEnabled _control;

See also

ctrlEnable