Arma 3 Scripting

cbSetChecked

  • Arma 3 v1.12

Command · Markdown · JSON · 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