A slider is a control with a handle which can be pulled back and forth to change the value.
On Windows, the track bar control is used.
On GTK+, tick marks are only available for version 2.16 and later.
Slider generates the same events as
Styles
This class supports the following styles:
The difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED
The EVT_SCROLL_THUMBRELEASE event is only emitted when actually dragging the thumb using the mouse and releasing it (This EVT_SCROLL_THUMBRELEASE event is also followed by an EVT_SCROLL_CHANGED event).
The EVT_SCROLL_CHANGED event also occurs when using the keyboard to change the thumb position, and when clicking next to the thumb (In all these cases the EVT_SCROLL_THUMBRELEASE event does not happen). In short, the EVT_SCROLL_CHANGED event is triggered when scrolling/ moving has finished independently of the way it had started. Please see the page_samples_widgets ("Slider" page) to see the difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
See:
This class is derived (and can use functions) from:
wxWidgets docs:
Event types emitted from this class:
Default constructor.
Constructor, creating and showing a slider.
See:
Destructor, destroying the slider.
Used for two-step slider construction.
See
Returns the line size.
See:
Gets the maximum slider value.
See:
Gets the minimum slider value.
See:
Returns the page size.
See:
Returns the thumb length.
Only for:wxmsw
See:
Gets the current slider value.
See:
Sets the line size for the slider.
See:
Sets the page size for the slider.
See:
Sets the minimum and maximum slider values.
See:
Sets the slider thumb length.
Only for:wxmsw
See:
Sets the slider position.