progressSetPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|gr1 = GUI Control |GROUP1=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| Sets progress position of a progress bar ([[CT_PROGRESS]]). |DESCRIPTION=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| control '''progressSetPosition''' pos |SYNTAX=
|gr1= GUI Control


|p1= control: [[Control]] - progress bar control |PARAMETER1=
|descr= Sets progress position of a [[CT_PROGRESS|progress bar]].


|p2= pos: [[Number]] - 0: no progress; 1: full progress |PARAMETER2=
|s1= control [[progressSetPosition]] progress


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


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


|r1= [[Nothing]]


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


|x2= <code>[[with]] [[uiNamespace]] [[do]] {
|x2= <sqf>
bar = [[findDisplay]] 46 [[ctrlCreate]] ["RscProgress", -1];  
with uiNamespace do {
bar [[ctrlSetPosition]] [0,0,1,0.01];  
bar = findDisplay 46 ctrlCreate ["RscProgress", -1];
bar [[ctrlCommit]] 0;
bar ctrlSetPosition [0,0,1,0.01];
bar [[progressSetPosition]] 0.75;  
bar ctrlCommit 0;
};</code> |EXAMPLE2=
bar progressSetPosition 0.75;
____________________________________________________________________________________________
};
</sqf>


| [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]] |SEEALSO=
|seealso= [[progressPosition]] [[ctrlSetScrollValues]] [[sliderSetPosition]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:34, 3 September 2024

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:
progressPosition ctrlSetScrollValues sliderSetPosition

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