{"name":"lnbSetColumnsPos","operator":null,"title":"lnbSetColumnsPos","type":"command","url":"https://community.bistudio.com/wiki/lnbSetColumnsPos","revid":341220,"updated":"2023-05-13T23:12:29Z","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 relative screen X for ListNBox control columns positions. Setter for lnbGetColumnsPosition.","syntaxes":[{"syntax":"lnbSetColumnsPos [idc, positions]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":"idc of the control","types":["Number"],"since":null,"text":"idc: Number - idc of the control"},{"name":"positions","type":"Array","optional":false,"default":null,"description":"positions of the columns","types":["Array"],"since":null,"text":"positions: Array - positions of the columns"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, positions]","types":["Array"]}},{"syntax":"ctrl lnbSetColumnsPos positions","since":null,"effect":null,"exec":null,"params":[{"name":"ctrl","type":"Control","optional":false,"default":null,"description":"lnb control","types":["Control"],"since":null,"text":"ctrl: Control - lnb control"},{"name":"positions","type":"Array","optional":false,"default":null,"description":"positions of the columns","types":["Array"],"since":null,"text":"positions: Array - positions of the columns"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"ctrl","types":["Control"]},"right":{"text":"positions","types":["Array"]}}],"examples":[{"text":"```sqf\nlnbSetColumnsPos [101, [0.1,0.5,0.7]];\n```","code":["lnbSetColumnsPos [101, [0.1,0.5,0.7]];"]},{"text":"```sqf\n_ctrl lnbSetColumnsPos [0.1,0.5,0.7];\n```","code":["_ctrl lnbSetColumnsPos [0.1,0.5,0.7];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbSetColor","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetText","lnbSetValue","lnbSize","lnbText","lnbValue"],"notes":[{"user":"ffur2007slx2_5","date":"2014-09-09T16:52:00Z","text":"See: List Box#LISTNBOX"}],"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"]}