Enables or disables a control of the currently active user dialog.
Disabled controls cannot be clicked onto.
Read Arma: GUI Configuration for more information about user dialogs and controls.
Please do note that enabled controls can gain focus upon click. Therefore do not enable background controls or else they will cover any controls on top of them.
As a general rule of thumb, enabled controls should only be already on the top of the GUI.
R3vo
One can disable a control when it is loaded by using ctrlEnable in the onLoad event handler.
class MyDialog
{
class MyControl
{
onLoad = "(_this # 0) ctrlEnable false;";
};
};