sliderSetPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
m (formatting)
Line 7: Line 7:
|gr1= GUI Control
|gr1= GUI Control


| Sets current thumb position of <tt>CT_SLIDER</tt> or <tt>CT_XSLIDER</tt> with given idc of topmost user [[dialog]].
|descr= Sets current thumb position of [[CT_SLIDER]] or [[CT_XSLIDER]].


| '''sliderSetPosition''' [idc, pos]
| '''sliderSetPosition''' [idc, pos]
|p1= [idc, pos]: [[Array]]
 
|p2= idc: [[Number]] of control
|p1= idc: [[Number]] - Idc of the control
 
|p3= pos: [[Number]]
|p3= pos: [[Number]]
| [[Nothing]]
 
|r1= [[Nothing]]


|s2= control '''sliderSetPosition''' pos
|s2= control '''sliderSetPosition''' pos


|p21= control: [[Control]]
|p21= control: [[Control]]
|p22= pos: [[Number]]
|p22= pos: [[Number]]
|r2= [[Nothing]]
|r2= [[Nothing]]
   
   
|x1= <code>[[sliderSetPosition]] [101, 50];</code>
|x1= <code>_ctrlSlider [[sliderSetPosition]] 50;</code>


|seealso= [[sliderPosition]], [[sliderRange]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]], [[ctrlSetScrollValues]], [[progressSetPosition]]
|seealso= [[sliderPosition]], [[sliderRange]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]], [[ctrlSetScrollValues]], [[progressSetPosition]]
}}
}}


{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on January 22, 2020 - 11:46 (UTC)</dd>
<dd class="notedate">Posted on January 22, 2020 - 11:46 (UTC)</dd>
Line 41: Line 37:
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 14:59, 27 March 2021

Hover & click on the images for description

Description

Description:
Sets current thumb position of CT_SLIDER or CT_XSLIDER.
Groups:
GUI Control

Syntax

Syntax:
Syntax needed
Parameters:
idc: Number - Idc of the control
pos: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
control sliderSetPosition pos
Parameters:
control: Control
pos: Number
Return Value:
Nothing

Examples

Example 1:
_ctrlSlider sliderSetPosition 50;

Additional Information

See also:
sliderPositionsliderRangesliderSetRangesliderSetSpeedsliderSpeedctrlSetScrollValuesprogressSetPosition

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
Posted on January 22, 2020 - 11:46 (UTC)
POLPOX
sliderSetPosition doesn't fire onSliderPosChanged events.