{"name":"lnbSetPicture","title":"lnbSetPicture","type":"command","url":"https://community.bistudio.com/wiki/lnbSetPicture","revid":379364,"updated":"2026-10-30T23:56:40Z","groups":["GUI Control - ListNBox"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Sets the picture in the item with the given position of the 2D listbox.The picture is searched in the mission, directory, the dtaExt subdirectory of the campaign directory, and the dtaExt directory and the data bank (or directory).","syntaxes":[{"syntax":"lnbSetPicture [idc, [row, column], picturePathOrName]","params":[{"name":"idc","type":"Number","type_expr":"Number"},{"name":"row","type":"Number","type_expr":"Number"},{"name":"column","type":"Number","type_expr":"Number"},{"name":"picturePathOrName","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[idc, [row, column], picturePathOrName]"}},{"syntax":"ctrl lnbSetPicture [[row, column], picturePathOrName]","params":[{"name":"ctrl","type":"Control","type_expr":"Control"},{"name":"row","type":"Number","type_expr":"Number"},{"name":"column","type":"Number","type_expr":"Number"},{"name":"picturePathOrName","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"ctrl"},"right":{"text":"[[row, column], picturePathOrName]"}}],"examples":[{"code":["lnbSetPicture [1, [0, 0], \"Picture\"];"]},{"code":["_ctrl lnbSetPicture [[0, 0], \"\\A3\\Ui_f\\data\\GUI\\Cfg\\Ranks\\lieutenant_gs.paa\"];"]}],"see_also":["lnbPicture","lnbSetPictureRight","lnbPictureRight"],"notes":[{"user":"R3vo","date":"2021-04-06T07:35:00Z","text":"> [!NOTE]\n> Adding pictures to lists is very slow. In order to prevent the filling of the list to be slowed down, add the pictures in the **scheduled** environment. One drawback of that method is, that sorting the entries is not easily possible.\n>\n> ```sqf\n> private _path = _ctrlTV tvAdd [[], \"Some Entry\"];\n> [_ctrlTV, _path] spawn {\n>     (_this select 0) tvSetPictureRight [[_this select 1], \"someImage.paa\"];\n> };\n> ```"}]}