Difference between revisions of "Slider"
From Xojo Documentation
(→Notes) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{DeprecatedItem|version=2021r3|replacement=[[DesktopSlider]]}} | ||
{{SupportedPlatforms | type=d}}{{WebApp | link=[[WebSlider]]}} | {{SupportedPlatforms | type=d}}{{WebApp | link=[[WebSlider]]}} | ||
{{ClassBox | {{ClassBox | ||
Line 25: | Line 26: | ||
{{Property | name=MinimumValue | description=( Integer) The minimum value of the slider. The default is 0. }} | {{Property | name=MinimumValue | description=( Integer) The minimum value of the slider. The default is 0. }} | ||
{{Property | name=PageStep | type=Integer | platform=all | description=( Integer) The amount the value changes when the user clicks in the Slider track. }} | {{Property | name=PageStep | type=Integer | platform=all | description=( Integer) The amount the value changes when the user clicks in the Slider track. }} | ||
− | {{Property | name=TickMarkStyle | description=( Slider} The style of tick mark to be displayed. }} | + | {{Property | name=TickMarkStyle | description=(Slider.TickMarkStyles} The style of tick mark to be displayed. }} |
{{Property | name=Value | type=Integer | platform=all | description=( Integer) The current value of the slider. }} | {{Property | name=Value | type=Integer | platform=all | description=( Integer) The current value of the slider. }} | ||
</dynamicTable> | </dynamicTable> | ||
Line 31: | Line 32: | ||
<dynamicTable id="Methods" super="RectControl" class="methodTable" title="Methods" columns="3"> | <dynamicTable id="Methods" super="RectControl" class="methodTable" title="Methods" columns="3"> | ||
+ | </dynamicTable> | ||
+ | |||
+ | <dynamicTable id="Enumerations" class="methodTable" title="Enumerations" columns="3"> | ||
+ | {{Enum | name=TickMarkStyles | description=Specifies the style of tick mark.}} | ||
</dynamicTable> | </dynamicTable> | ||
Latest revision as of 22:25, 11 February 2022
![]() |
This item was deprecated in version 2021r3. Please use DesktopSlider as a replacement. |
![]() |
Supported Platforms Project Types: Desktop Platforms: macOS, Windows, Linux |
- For web apps, see WebSlider.
Class (inherits from RectControl)
The slider control used by desktop applications. As the user moves the slider, the Value property changes. To create a vertical slider, make the height greater than the width.
Properties | ||||||||||||||||||||||||||||||||||
|
Methods | |||||||||
|
Enumerations | |
|
Notes
Sliders default to a height of 23 pixels so they use the normal size on all platforms.
On macOS Sierra (10.12) and later, vertical sliders no longer appear automatically when the height is greater than the width. To enable a vertical slider, put this code in the Open event handler for the Slider:
Declare Sub setVertical Lib "Cocoa" Selector "setVertical:" (windowRef As Integer, id As Boolean)
setVertical(Me.Handle, True)
setVertical(Me.Handle, True)
Examples
Changing the maximum value of a Slider at runtime:
Slider1.MaximumValue = 200
Setting the text of TextField1 to the value of the slider when the user scrolls.
See Also
RectControl class; Scrollbar control; TickMarkStyles enum.