{"name":"lbSetPictureColorSelected","operator":null,"title":"lbSetPictureColorSelected","type":"command","url":"https://community.bistudio.com/wiki/lbSetPictureColorSelected","revid":377357,"updated":"2026-01-02T06:40:23Z","groups":["GUI Control - ListBox"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.20"}],"since":{"game":"arma3","name":"Arma 3","version":"1.20"},"arma3_since":"1.20","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets the selected color of item's picture (left) with the given index of the listbox with id idc of the topmost user dialog to the given color. Color is in format Color (RGBA). Color which consists from only zeros means disable this override.","syntaxes":[{"syntax":"lbSetPictureColorSelected [idc, index, color]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":"control id","types":["Number"],"since":null,"text":"idc: Number - control id"},{"name":"index","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"index: Number"},{"name":"color","type":null,"optional":false,"default":null,"description":"Color (RGBA)","types":["Color"],"since":null,"text":"color: Color (RGBA)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, index, color]","types":["Array"]}},{"syntax":"control lbSetPictureColorSelected [index, color]","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"index","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"index: Number"},{"name":"color","type":null,"optional":false,"default":null,"description":"Color (RGBA)","types":["Color"],"since":null,"text":"color: Color (RGBA)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"[index, color]","types":["Array"]}}],"examples":[{"text":"```sqf\nlbSetPictureColorSelected [101, 0, [0, 1, 0, 0.5]];\n```","code":["lbSetPictureColorSelected [101, 0, [0, 1, 0, 0.5]];"]},{"text":"```sqf\n_ctrl lbSetPictureColorSelected [0, [1, 1, 1, 1]];\n```","code":["_ctrl lbSetPictureColorSelected [0, [1, 1, 1, 1]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lbAdd","lbClear","lbColor","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbSelection","lbSetColor","lbSetCurSel","lbSetData","lbSetSelected","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortByValue","lbText","lbValue","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled"],"notes":[{"user":"ffur2007slx2_5","date":"2014-09-10T16:30:00Z","text":"More information on the CT_LISTBOX command family can be found here."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - ListBox","Introduced with Arma 3 version 1.20","Scripting Commands"]}