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:
idc: Number - control's IDC
Returns: Boolean - true if the control is enabled, false if not
Syntax 2
ctrlEnabled controlName
Parameters:
controlName: Control
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;