Arma 3 Scripting

Command in GUI Control

cbSetChecked

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

Description

Sets the current state of a CT_CHECKBOX control. Use "CheckedChanged" control event handler with it.

Syntax

control cbSetChecked state

Parameters:

Returns: Nothing

Examples

Example 1

_myCheckBox cbSetChecked true;

Example 2

_disp = findDisplay 46 createDisplay "RscDisplayEmpty";
_chk = _disp ctrlCreate ["RscCheckBox", -1];
_chk cbSetChecked true;

See also

cbChecked · ctrlSetChecked · ctrlChecked