An integer slider that displays a set of string values in place of numeric values.
Inherits :
DAZ Script |
---|
DzEnumSlider ( DzWidget parent ) |
Provides a control that allows a user to adjust a bounded, enumerated, integer value. The slider is clamped by default, and automatically sets its min and max range according to the number of string values it contains.
Holds the number of items on the slider. (Read Only)
Holds the text of the slider. (Read Only)
DzEnumSlider( DzWidget parent )
Creates a new enumerated slider widget.
Parameter(s):
Number : addItem( String label )
Adds a string to the list of items, and adjusts the maximum value for the slider.
Parameter(s):
Return Value:
void : clear()
Clears the list of string values for this slider.
String : getItem( Number index )
Parameter(s):
Return Value:
void : moveItem( Number from, Number to )
Moves an item from one position to another.
Parameter(s):
from
becomes the last item.void : removeItem( Number index )
Removes the item at the specified position from the list.
Parameter(s):
void : renameItem( Number index, String label )
Renames the item at the specified position.
Parameter(s):
index
.