DVX_GUI/widgets/slider/slider.dhs

48 lines
1.1 KiB
Text

.section Widgets
.topic widget.slider
.title Slider
.toc 0 Slider
.index Slider
.index wgtSlider
.index wgtSliderSetValue
.index wgtSliderGetValue
.h2 Slider
A horizontal slider (track bar) for selecting an integer value within a range. The user drags the thumb or clicks the track to change the value.
Header: widgets/widgetSlider.h
.h3 Creation
.code
WidgetT *sl = wgtSlider(parent, 0, 100);
.endcode
.h3 Macros
.table
Macro Description
----- -----------
wgtSlider(parent, minVal, maxVal) Create a slider with the given integer range.
wgtSliderSetValue(w, value) Set the slider value programmatically.
wgtSliderGetValue(w) Get the current slider value.
.endtable
.h3 Events
.table
Callback Description
-------- -----------
onChange Fires when the slider value changes.
.endtable
.h3 Properties (BASIC Interface)
.table
Property Type Access Description
-------- ---- ------ -----------
Value Integer Read/Write Current slider value.
.endtable
.hr