{"name":"cbSetChecked","title":"cbSetChecked","type":"command","url":"https://community.bistudio.com/wiki/cbSetChecked","revid":369236,"updated":"2024-09-03T10:35:01Z","groups":["GUI Control"],"status":"ok","games":{"arma3":"1.12"},"since":"arma3 1.12","arma3_since":"1.12","description":"Sets the current state of a CT_CHECKBOX control. Use `\"CheckedChanged\"` control event handler with it.","syntaxes":[{"syntax":"control cbSetChecked state","params":[{"name":"control","type":"Control","type_expr":"Control","text":"control : Control"},{"name":"state","type":"Boolean","type_expr":"Boolean","text":"state : Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"state"}}],"examples":[{"code":["_myCheckBox cbSetChecked true;"]},{"code":["_disp = findDisplay 46 createDisplay \"RscDisplayEmpty\";\n_chk = _disp ctrlCreate [\"RscCheckBox\", -1];\n_chk cbSetChecked true;"]}],"see_also":["cbChecked","ctrlSetChecked","ctrlChecked"]}