progressSetPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(4 intermediate revisions by the same user not shown)
Line 19: Line 19:
|s1= control [[progressSetPosition]] progress
|s1= control [[progressSetPosition]] progress


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


|p2= progress: [[Number]] - 0: no progress; 1: full progress
|p2= progress: [[Number]] - 0: no progress; 1: full progress
Line 25: Line 25:
|r1= [[Nothing]]
|r1= [[Nothing]]


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


|x2= <code>with uiNamespace do {
|x2= <sqf>
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>
};
</sqf>


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

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