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.
Slider events are handled in the same way as a scrollbar.
SL_HORIZONTAL |
Displays the slider horizontally (this is the default). |
SL_VERTICAL |
Displays the slider vertically. |
SL_AUTOTICKS |
Displays tick marks. |
SL_LABELS |
Displays minimum, maximum and value labels. |
SL_LEFT |
Displays ticks on the left and forces the slider to be vertical. |
SL_RIGHT |
Displays ticks on the right and forces the slider to be vertical. |
SL_TOP |
Displays ticks on the top. |
SL_BOTTOM |
Displays ticks on the bottom (this is the default). |
SL_SELRANGE |
Allows the user to select a range on the slider. Windows only. |
SL_INVERSE |
Inverses the mininum and maximum endpoints on the slider. Not compatible with SL_SELRANGE. |
See also window styles overview.
scrolevt.inc
Event handling overview, ScrollBar
Slider.new(Window parent, Integer id, Integer value ,
Integer minValue,
Integer maxValue,
Point point = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
Integer style = SL_HORIZONTAL,
Validator validator = DEFAULT_VALIDATOR,
String name = "slider")
Constructor, creating and showing a slider.
destructor()
Destructor, destroying the slider.
clear_sel()
Clears the selection, for a slider with the SL_SELRANGE style.
Windows 95 only.
clear_ticks()
Clears the ticks.
Windows 95 only.
Boolean create(Window parent, Integer id, Integer value ,
Integer minValue,
Integer maxValue,
Point point = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
Integer style = SL_HORIZONTAL,
Validator validator = DEFAULT_VALIDATOR,
String name = "slider")
Used for two-step slider construction. See Slider.new for further details.
Integer get_line_size()
Returns the line size.
Integer get_max()
Gets the maximum slider value.
Slider#get_min, Slider#set_range
Integer get_min()
Gets the minimum slider value.
Slider#get_min, Slider#set_range
Integer get_page_size()
Returns the page size.
Integer get_sel_end()
Returns the selection end point.
Windows 95 only.
Slider#get_sel_start, Slider#set_selection
Integer get_sel_start()
Returns the selection start point.
Windows 95 only.
Slider#get_sel_end, Slider#set_selection
Integer get_thumb_length()
Returns the thumb length.
Windows 95 only.
Integer get_tick_freq()
Returns the tick frequency.
Windows 95 only.
Integer get_value()
Gets the current slider value.
Slider#get_min, Slider#get_max, Slider#set_value
set_line_size(Integer lineSize)
Sets the line size for the slider.
set_page_size(Integer pageSize)
Sets the page size for the slider.
set_range(Integer minValue, Integer maxValue)
Sets the minimum and maximum slider values.
Slider#get_min, Slider#get_max
set_selection(Integer startPos, Integer endPos)
Sets the selection.
Windows 95 only.
Slider#get_sel_start, Slider#get_sel_end
set_thumb_length(Integer len)
Sets the slider thumb length.
Windows 95 only.
set_tick(Integer tickPos)
Sets a tick position.
Windows 95 only.
set_tick_freq(Integer n, Integer pos)
Sets the tick mark frequency and position.
Windows 95 only.
set_value(Integer value)
Sets the slider position.
[This page automatically generated from the Textile source at Thu May 01 00:50:43 +0100 2008]