{"name":"progressSetPosition","title":"progressSetPosition","type":"command","url":"https://community.bistudio.com/wiki/progressSetPosition","revid":369221,"updated":"2024-09-03T10:34:54Z","groups":["GUI Control"],"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 progress position of a progress bar.","syntaxes":[{"syntax":"control progressSetPosition progress","params":[{"name":"control","type":"Control","description":"progress bar control","type_expr":"Control"},{"name":"progress","type":"Number","description":"0: no progress; 1: full progress","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"progress"}}],"examples":[{"code":["_control progressSetPosition 0.5;"]},{"text":"```sqf\nwith uiNamespace do {\n    bar = findDisplay 46 ctrlCreate [\"RscProgress\", -1];\n    bar ctrlSetPosition [0,0,1,0.01];\n    bar ctrlCommit 0;\n    bar progressSetPosition 0.75;\n};\n```","code":["with uiNamespace do {\n\tbar = findDisplay 46 ctrlCreate [\"RscProgress\", -1];\n\tbar ctrlSetPosition [0,0,1,0.01];\n\tbar ctrlCommit 0;\n\tbar progressSetPosition 0.75;\n};"]}],"see_also":["progressPosition","ctrlSetScrollValues","sliderSetPosition"]}