{"name":"lbSetColor","title":"lbSetColor","type":"command","url":"https://community.bistudio.com/wiki/lbSetColor","revid":379436,"updated":"2026-10-31T00:06:16Z","groups":["GUI Control - ListBox"],"status":"ok","games":{"ofp":"1.75","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.75","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"Sets the color of the item (left) with the given index of the listbox or combobox with id idc of the topmost user Dialog to color.","syntaxes":[{"syntax":"lbSetColor [idc, index, color]","params":[{"name":"idc","type":"Number","description":"control's IDC","type_expr":"Number"},{"name":"index","type":"Number","type_expr":"Number"},{"name":"color","type":"Color (RGBA)","type_expr":"Color"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[idc, index, color]"}},{"syntax":"control lbSetColor [index, color]","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"index","type":"Number","type_expr":"Number"},{"name":"color","type":"Color (RGBA)","type_expr":"Color"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"[index, color]"}}],"examples":[{"code":["lbSetColor [101, 0, [0, 1, 0, 0.5]];"]},{"code":["_control lbSetColor [0, [0, 1, 0, 0.5]];"]}],"see_also":["lbColor","lbSetColorRight","lbColorRight"],"notes":[{"user":"ffur2007slx2_5","date":"2014-09-10T00:00:00Z","text":"More information on the CT_LISTBOX command family can be found here."}]}