{"name":"lnbSetPicture","operator":null,"title":"lnbSetPicture","type":"command","url":"https://community.bistudio.com/wiki/lnbSetPicture","revid":352055,"updated":"2024-02-01T23:24:34Z","groups":["GUI Control - ListNBox"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"idc: Number"},{"name":"row","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"row: Number"},{"name":"column","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"column: Number"},{"name":"picturePathOrName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"picturePathOrName: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, [row, column], picturePathOrName]","types":["Array"]}},{"syntax":"ctrl lnbSetPicture [[row, column], picturePathOrName]","since":null,"effect":null,"exec":null,"params":[{"name":"ctrl","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"ctrl: Control"},{"name":"row","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"row: Number"},{"name":"column","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"column: Number"},{"name":"picturePathOrName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"picturePathOrName: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"ctrl","types":["Control"]},"right":{"text":"[[row, column], picturePathOrName]","types":["Array"]}}],"examples":[{"text":"```sqf\nlnbSetPicture [1, [0, 0], \"Picture\"];\n```","code":["lnbSetPicture [1, [0, 0], \"Picture\"];"]},{"text":"```sqf\n_ctrl lnbSetPicture [[0, 0], \"\\A3\\Ui_f\\data\\GUI\\Cfg\\Ranks\\lieutenant_gs.paa\"];\n```","code":["_ctrl lnbSetPicture [[0, 0], \"\\A3\\Ui_f\\data\\GUI\\Cfg\\Ranks\\lieutenant_gs.paa\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lnbPicture","lnbSetPictureRight","lnbPictureRight"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - ListNBox","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}