{"name":"lbColor","title":"lbColor","type":"command","url":"https://community.bistudio.com/wiki/lbColor","revid":379430,"updated":"2026-10-31T00:05:29Z","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":"Returns the text color of the item with the given index of the CT_LISTBOX or CT_COMBO with IDC of the topmost user dialog.","syntaxes":[{"syntax":"lbColor [idc, index]","params":[{"name":"idc","type":"Number","description":"control IDC","type_expr":"Number"},{"name":"index","type":"Number","type_expr":"Number"}],"returns":{"type":"Color (RGBA)","type_expr":"Color"},"form":"unary","right":{"text":"[idc, index]"}},{"syntax":"control lbColor index","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"index","type":"Number","type_expr":"Number"}],"returns":{"type":"Color (RGBA)","type_expr":"Color"},"form":"binary","left":{"text":"control"},"right":{"text":"index"}}],"examples":[{"code":["_colour = lbColor [101, 0];"]},{"code":["_color = _control lbColor 0;"]}],"see_also":["lbSetColor"],"notes":[{"user":"ffur2007slx2_5","date":"2014-09-10T00:00:00Z","text":"More information on the CT_LISTBOX command family can be found here."}]}