Description
Sets checked state of a CT_CHECKBOXES control.
Syntax
Syntax 1
control ctrlSetChecked checked
Parameters:
control: Control - CT_CHECKBOXES control. If control contain multiple checkboxes, only checkbox with index 0 is queried.checked: Boolean - true to check, false to uncheck the checkbox
Returns: Nothing
Syntax 2
since arma3 1.72
control ctrlSetChecked [index, checked]
Parameters:
control: Control - CT_CHECKBOXES controlindex: Number - checkbox indexchecked: Boolean - true to check, false to uncheck the checkbox
Returns: Nothing
Examples
Example 1
_control ctrlSetChecked true;
Example 2
_control ctrlSetChecked [3, true];