progressSetPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2


|1.00
|version1= 1.00
 
|game2= arma2oa
 
|version2= 1.51
 
|game3= tkoh
 
|version3= 1.00
 
|game4= arma3
 
|version4= 0.50


|gr1= GUI Control
|gr1= GUI Control


| Sets progress position of a progress bar ([[CT_PROGRESS]]).
|descr= Sets progress position of a [[CT_PROGRESS|progress bar]].


| control '''progressSetPosition''' pos
|s1= control '''progressSetPosition''' progress


|p1= control: [[Control]] - progress bar control
|p1= control: [[Control]] - Progress bar control


|p2= pos: [[Number]] - 0: no progress; 1: full progress
|p2= progress: [[Number]] - 0: no progress; 1: full progress


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_control [[progressSetPosition]] 0.5</code>
|x1= <code>_control [[progressSetPosition]] 0.5;</code>


|x2= <code>[[with]] [[uiNamespace]] [[do]] {
|x2= <code>[[with]] [[uiNamespace]] [[do]] {
Line 28: Line 40:
|seealso= [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]]
|seealso= [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 09:26, 25 May 2021

Hover & click on the images for description

Description

Description:
Sets progress position of a progress bar.
Groups:
GUI Control

Syntax

Syntax:
control progressSetPosition progress
Parameters:
control: Control - Progress bar control
progress: Number - 0: no progress; 1: full progress
Return Value:
Nothing

Examples

Example 1:
_control progressSetPosition 0.5;
Example 2:
with uiNamespace do { bar = findDisplay 46 ctrlCreate ["RscProgress", -1]; bar ctrlSetPosition [0,0,1,0.01]; bar ctrlCommit 0; bar progressSetPosition 0.75; };

Additional Information

See also:
progressPositionctrlSetScrollValuessliderSetPosition

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note