sliderSetPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofpr |Game name=
| ofpr |Game name=
Line 7: Line 6:


|gr1= GUI Control |GROUP1=
|gr1= GUI Control |GROUP1=
____________________________________________________________________________________________


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


| '''sliderSetPosition''' [idc, pos] |SYNTAX=
| '''sliderSetPosition''' [idc, pos] |SYNTAX=
Line 23: Line 20:
|p22= pos: [[Number]] |PARAMETER22=
|p22= pos: [[Number]] |PARAMETER22=
|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]] |RETURNVALUE2=
____________________________________________________________________________________________
   
   
|x1= <code>[[sliderSetPosition]] [101, 50];</code> |EXAMPLE1=
|x1= <code>[[sliderSetPosition]] [101, 50];</code> |EXAMPLE1=
____________________________________________________________________________________________


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

Revision as of 03:46, 17 January 2021

Hover & click on the images for description

Description

Description:
Sets current thumb position of CT_SLIDER or CT_XSLIDER with given idc of topmost user dialog.
Groups:
GUI Control

Syntax

Syntax:
sliderSetPosition [idc, pos]
Parameters:
[idc, pos]: Array
idc: Number of control
pos: Number
Return Value:
Nothing

Alternative Syntax

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

Examples

Example 1:
sliderSetPosition [101, 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

Notes

Bottom Section

Posted on January 22, 2020 - 11:46 (UTC)
POLPOX
sliderSetPosition doesn't fire onSliderPosChanged events.