User Tools

Site Tools


DAZScript integer slider that displays a set of string values in place of numeric values.


Inherits :



DAZ Script
DzEnumSlider ( DzWidget parent )


DAZ Script
NumberaddItem ( String label )
voidclear ()
StringgetItem ( Number which )
voidmoveItem ( Number which, Number idx )
voidremoveItem ( Number which )
voidrenameItem ( Number which, String label )


voideditEnd ()
voideditStart ()
voidvalueChanged ( Number value )

Detailed Description

A DzEnumSlider 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.


Number : count

Holds the number of items on the slider. (Read Only)

Number : defaultValue

Holds the default value of the slider.



Boolean : restorable

Holds whether or not the default value is restorable if the user holds the [Alt] key when clicked.



String : text

Holds the text of the slider. (Read Only)

Number : value

Holds the current value of the slider.


DzEnumSlider( DzWidget parent )

Creates a new enumerated slider widget.


  • parent - The widget parent for the slider.


Number : addItem( String label )

Adds a string to the list of items, and adjusts the maximum value for the slider.


  • label - The string value to add to the list of items in the slider.

Return Value:

  • The index of the item - this is the numeric value of the slider that corresponds to the string value.

void : clear()

Clears the list of string values for this slider.

String : getItem( Number which )

Return Value:

  • The String representing the which item.

void : moveItem( Number which, Number idx )

Moves the item at index which to idx.


  • which - The index of the item to move. If out of range, this method has no effect.
  • idx - The index to move which to. If out of range, which becomes the last item.

void : removeItem( Number which )

Removes the item at which from the list.


  • which - The index of the item. If out of range, this method has no effect.

void : renameItem( Number which, String label )

Renames the item at index which.


  • which - The index of the item to rename. If out of range, this method has no effect.
  • label - The new value of the item at index which.


void : editEnd()


Emitted when the user releases the slider.

void : editStart()


Emitted when the user starts dragging the slider.

void : valueChanged( Number value )


Emitted when the value of the slider changes, passes the new value.