2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: slider.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxSlider
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
2010-07-13 13:29:13 +00:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxSlider
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-10-04 20:49:51 +00:00
|
|
|
A slider is a control with a handle which can be pulled back and forth to
|
|
|
|
change the value.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
On Windows, the track bar control is used.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
Slider events are handled in the same way as a scrollbar.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@beginStyleTable
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_HORIZONTAL}
|
2008-03-08 13:52:38 +00:00
|
|
|
Displays the slider horizontally (this is the default).
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_VERTICAL}
|
2008-03-08 13:52:38 +00:00
|
|
|
Displays the slider vertically.
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_AUTOTICKS}
|
2009-11-14 14:25:54 +00:00
|
|
|
Displays tick marks. Windows only.
|
|
|
|
@style{wxSL_MIN_MAX_LABELS}
|
2009-11-14 23:14:27 +00:00
|
|
|
Displays minimum, maximum labels (new since wxWidgets 2.9.1).
|
2009-11-14 14:25:54 +00:00
|
|
|
@style{wxSL_VALUE_LABEL}
|
2009-11-14 23:14:27 +00:00
|
|
|
Displays value label (new since wxWidgets 2.9.1).
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_LABELS}
|
2009-11-14 23:14:27 +00:00
|
|
|
Displays minimum, maximum and value labels (same as wxSL_VALUE_LABEL
|
|
|
|
and wxSL_MIN_MAX_LABELS together).
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_LEFT}
|
2008-03-08 13:52:38 +00:00
|
|
|
Displays ticks on the left and forces the slider to be vertical.
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_RIGHT}
|
2008-03-08 13:52:38 +00:00
|
|
|
Displays ticks on the right and forces the slider to be vertical.
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_TOP}
|
2008-03-08 13:52:38 +00:00
|
|
|
Displays ticks on the top.
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_BOTTOM}
|
2008-03-08 13:52:38 +00:00
|
|
|
Displays ticks on the bottom (this is the default).
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_SELRANGE}
|
2008-03-08 13:52:38 +00:00
|
|
|
Allows the user to select a range on the slider. Windows only.
|
2008-04-06 14:43:04 +00:00
|
|
|
@style{wxSL_INVERSE}
|
2008-03-08 13:52:38 +00:00
|
|
|
Inverses the mininum and maximum endpoints on the slider. Not
|
|
|
|
compatible with wxSL_SELRANGE.
|
|
|
|
@endStyleTable
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2009-11-14 23:15:27 +00:00
|
|
|
Notice that @c wxSL_LEFT, @c wxSL_TOP, @c wxSL_RIGHT and @c wxSL_BOTTOM
|
|
|
|
specify the position of the slider ticks in MSW implementation and that the
|
|
|
|
slider labels, if any, are positioned on the opposite side. So, to have a
|
|
|
|
label on the left side of a vertical slider, @b wxSL_RIGHT must be used (or
|
|
|
|
none of these styles at all should be specified as left and top are default
|
|
|
|
positions for the vertical and horizontal sliders respectively).
|
|
|
|
|
2009-02-18 17:58:51 +00:00
|
|
|
@beginEventEmissionTable{wxScrollEvent}
|
2008-10-04 20:49:51 +00:00
|
|
|
You can use EVT_COMMAND_SCROLL... macros with window IDs for when intercepting
|
|
|
|
scroll events from controls, or EVT_SCROLL... macros without window IDs for
|
|
|
|
intercepting scroll events from the receiving window -- except for this,
|
|
|
|
the macros behave exactly the same.
|
|
|
|
@event{EVT_SCROLL(func)}
|
|
|
|
Process all scroll events.
|
|
|
|
@event{EVT_SCROLL_TOP(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_TOP scroll-to-top events (minimum position).
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_SCROLL_BOTTOM(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_BOTTOM scroll-to-bottom events (maximum position).
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_SCROLL_LINEUP(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_LINEUP line up events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_SCROLL_LINEDOWN(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_LINEDOWN line down events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_SCROLL_PAGEUP(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_PAGEUP page up events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_SCROLL_PAGEDOWN(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_PAGEDOWN page down events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_SCROLL_THUMBTRACK(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_THUMBTRACK thumbtrack events
|
2008-10-04 20:49:51 +00:00
|
|
|
(frequent events sent as the user drags the thumbtrack).
|
|
|
|
@event{EVT_SCROLL_THUMBRELEASE(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_THUMBRELEASE thumb release events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_SCROLL_CHANGED(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_CHANGED end of scrolling events (MSW only).
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL(id, func)}
|
|
|
|
Process all scroll events.
|
|
|
|
@event{EVT_COMMAND_SCROLL_TOP(id, func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_TOP scroll-to-top events (minimum position).
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL_BOTTOM(id, func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_BOTTOM scroll-to-bottom events (maximum position).
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL_LINEUP(id, func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_LINEUP line up events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL_LINEDOWN(id, func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_LINEDOWN line down events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL_PAGEUP(id, func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_PAGEUP page up events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL_PAGEDOWN(id, func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_PAGEDOWN page down events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL_THUMBTRACK(id, func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_THUMBTRACK thumbtrack events
|
2008-10-04 20:49:51 +00:00
|
|
|
(frequent events sent as the user drags the thumbtrack).
|
|
|
|
@event{EVT_COMMAND_SCROLL_THUMBRELEASE(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_THUMBRELEASE thumb release events.
|
2008-10-04 20:49:51 +00:00
|
|
|
@event{EVT_COMMAND_SCROLL_CHANGED(func)}
|
2011-01-06 19:52:14 +00:00
|
|
|
Process @c wxEVT_SCROLL_CHANGED end of scrolling events (MSW only).
|
2011-03-15 11:10:34 +00:00
|
|
|
@event{EVT_SLIDER(id, func)}
|
|
|
|
Process @c wxEVT_COMMAND_SLIDER_UPDATED which is generated after any
|
|
|
|
change of wxSlider position in addition to one of the events above.
|
2008-10-04 20:49:51 +00:00
|
|
|
@endEventTable
|
|
|
|
|
|
|
|
@section slider_diff 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 widgets sample ("Slider" page) to see the difference between
|
|
|
|
EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
|
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxcore}
|
|
|
|
@category{ctrl}
|
2008-10-13 08:05:18 +00:00
|
|
|
@appearance{slider.png}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2009-02-18 00:19:22 +00:00
|
|
|
@see @ref overview_events, wxScrollBar
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
class wxSlider : public wxControl
|
|
|
|
{
|
|
|
|
public:
|
2008-05-26 07:33:59 +00:00
|
|
|
/**
|
|
|
|
Default constructor
|
|
|
|
*/
|
|
|
|
wxSlider();
|
2008-10-04 14:30:56 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
Constructor, creating and showing a slider.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param parent
|
2008-03-09 12:33:59 +00:00
|
|
|
Parent window. Must not be @NULL.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param id
|
2008-03-09 12:33:59 +00:00
|
|
|
Window identifier. The value wxID_ANY indicates a default value.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param value
|
2008-03-09 12:33:59 +00:00
|
|
|
Initial position for the slider.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param minValue
|
2008-03-09 12:33:59 +00:00
|
|
|
Minimum slider position.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param maxValue
|
2008-03-09 12:33:59 +00:00
|
|
|
Maximum slider position.
|
2008-10-05 11:24:00 +00:00
|
|
|
@param pos
|
2009-04-21 11:21:36 +00:00
|
|
|
Window position.
|
|
|
|
If ::wxDefaultPosition is specified then a default position is chosen.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param size
|
2009-04-21 11:21:36 +00:00
|
|
|
Window size.
|
|
|
|
If ::wxDefaultSize is specified then a default size is chosen.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param style
|
2008-03-09 12:33:59 +00:00
|
|
|
Window style. See wxSlider.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param validator
|
2008-03-09 12:33:59 +00:00
|
|
|
Window validator.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param name
|
2008-03-09 12:33:59 +00:00
|
|
|
Window name.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see Create(), wxValidator
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
wxSlider(wxWindow* parent, wxWindowID id, int value,
|
|
|
|
int minValue, int maxValue,
|
2008-10-05 11:24:00 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
2008-03-08 14:43:31 +00:00
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxSL_HORIZONTAL,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
2008-11-13 21:32:53 +00:00
|
|
|
const wxString& name = wxSliderNameStr);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor, destroying the slider.
|
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual ~wxSlider();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Clears the selection, for a slider with the @b wxSL_SELRANGE style.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void ClearSel();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Clears the ticks.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void ClearTicks();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-10-04 20:49:51 +00:00
|
|
|
Used for two-step slider construction.
|
|
|
|
See wxSlider() for further details.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-10-28 15:36:26 +00:00
|
|
|
bool Create(wxWindow* parent, wxWindowID id, int value, int minValue,
|
|
|
|
int maxValue, const wxPoint& point = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL,
|
2008-03-08 13:52:38 +00:00
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
2008-10-28 15:36:26 +00:00
|
|
|
const wxString& name = wxSliderNameStr);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the line size.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see SetLineSize()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetLineSize() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Gets the maximum slider value.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetMin(), SetRange()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetMax() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Gets the minimum slider value.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetMin(), SetRange()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetMin() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the page size.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see SetPageSize()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetPageSize() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the selection end point.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetSelStart(), SetSelection()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetSelEnd() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the selection start point.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetSelEnd(), SetSelection()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetSelStart() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the thumb length.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see SetThumbLength()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetThumbLength() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the tick frequency.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see SetTickFreq()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetTickFreq() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Gets the current slider value.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetMin(), GetMax(), SetValue()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual int GetValue() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the line size for the slider.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param lineSize
|
2008-10-04 20:49:51 +00:00
|
|
|
The number of steps the slider moves when the user moves it up
|
|
|
|
or down a line.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetLineSize()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void SetLineSize(int lineSize);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the page size for the slider.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param pageSize
|
2008-03-09 12:33:59 +00:00
|
|
|
The number of steps the slider moves when the user pages up or down.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetPageSize()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void SetPageSize(int pageSize);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the minimum and maximum slider values.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetMin(), GetMax()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void SetRange(int minValue, int maxValue);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the selection.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param startPos
|
2008-03-09 12:33:59 +00:00
|
|
|
The selection start position.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param endPos
|
2008-03-09 12:33:59 +00:00
|
|
|
The selection end position.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetSelStart(), GetSelEnd()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void SetSelection(int startPos, int endPos);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the slider thumb length.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param len
|
2008-03-09 12:33:59 +00:00
|
|
|
The thumb length.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetThumbLength()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void SetThumbLength(int len);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets a tick position.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param tickPos
|
2008-03-09 12:33:59 +00:00
|
|
|
The tick position.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see SetTickFreq()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void SetTick(int tickPos);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the tick mark frequency and position.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param n
|
2008-03-09 12:33:59 +00:00
|
|
|
Frequency. For example, if the frequency is set to two, a tick mark is
|
2008-10-04 20:49:51 +00:00
|
|
|
displayed for every other increment in the slider's range.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-11-22 00:21:10 +00:00
|
|
|
@onlyfor{wxmsw}
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
@see GetTickFreq()
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2011-02-05 16:36:30 +00:00
|
|
|
virtual void SetTickFreq(int n);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the slider position.
|
2008-03-20 13:45:17 +00:00
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
@param value
|
2008-03-09 12:33:59 +00:00
|
|
|
The slider position.
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual void SetValue(int value);
|
2008-03-08 13:52:38 +00:00
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|