sliderSetPosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) 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 | |descr= Sets current thumb position of [[CT_SLIDER]] or [[CT_XSLIDER]]. | ||
| '''sliderSetPosition''' [idc, pos] | | '''sliderSetPosition''' [idc, pos] | ||
|p1 | |||
|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]] | |x1= <code>_ctrlSlider [[sliderSetPosition]] 50;</code> | ||
|seealso= [[sliderPosition]], [[sliderRange]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]], [[ctrlSetScrollValues]], [[progressSetPosition]] | |seealso= [[sliderPosition]], [[sliderRange]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]], [[ctrlSetScrollValues]], [[progressSetPosition]] | ||
}} | }} | ||
<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> | ||
Revision as of 14:59, 27 March 2021
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
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.