{"name":"ctrlSetBackgroundColor","title":"ctrlSetBackgroundColor","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetBackgroundColor","revid":377733,"updated":"2026-01-03T00:21:54Z","groups":["GUI Control"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Sets background color of given control. Only affects:\n\n- CT_COMBO\n- CT_STATIC\n- CT_STRUCTURED_TEXT\n- CT_MAP\n- CT_MAP_MAIN\n- Arma 3 v2.02 CT_BUTTON\n- Arma 3 v2.02 CT_SHORTCUTBUTTON\n- Arma 3 v2.02 CT_ACTIVETEXT","syntaxes":[{"syntax":"control ctrlSetBackgroundColor color","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"color","type":"Color (RGBA)","type_expr":"Color"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"color"}}],"examples":[{"code":["_control ctrlSetBackgroundColor [1, 0, 0, 1];"]}],"see_also":["allControls","allDisplays","controlsGroupCtrl","ctrlDelete","ctrlModel","ctrlSetModel","ctrlPosition","ctrlSetPosition","ctrlClassName","ctrlModelScale","ctrlSetModelScale","ctrlModelDirAndUp","ctrlSetModelDirAndUp","displayParent"]}