ctrlSetChecked

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.50

Description

Description:
Sets checked state of a checkbox in checkboxes control (CT_CHECKBOXES, type = 7;). Since Arma 3 v1.71.141591 it is possible to check checkbox with given index in multiple checkboxes set-up. For more information see DialogControls-CheckBoxes.

Syntax

Syntax:
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
Return Value:
Nothing

Alternative Syntax

Syntax:
control ctrlSetChecked [index, checked]        (Since Arma 3 v1.71.141591)
Parameters:
control: Control - CT_CHECKBOXES control
[index, checked]: Array
index: Number - checkbox index
checked: Boolean- true to check, false to uncheck the checkbox
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetChecked true;
Example 2:
_control ctrlSetChecked [3, true];

Additional Information

Multiplayer:
-
See also:
ctrlCheckedcbCheckedcbSetChecked

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section