progressSetPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ")
m (Text replacement - ";[ ]+ " to "; ")
Line 28: Line 28:


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


|seealso= [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]]
|seealso= [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]]
}}
}}

Revision as of 00:54, 8 August 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