User Tools

Site Tools


DzIntSlider

DAZScript integer (whole number) slider widget.

More...

Inherits :

Properties

Constructors

DAZ Script
DzIntSlider ( DzWidget parent )

Signals

voideditCancelled ()
voideditEnd ()
voideditStart ()
voidvalueChanged ( Number value )

Detailed Description

A DzIntSlider provides a control that allows a user to adjust a bounded integer value.

Properties


Boolean : clamped

Holds whether or not the slider obeys its limits. false by default.


Number : defaultValue

Holds the default value of the slider.

Since:

  • 4.11.0.369

Boolean : displayAsPercent

Holds whether or not the slider text is displayed as a percentage value. false by default.


Boolean : fullLengthEdit

Holds whether or not editing the slider text causes the edit field to consume the full height/width of the slider. false by default.

Since:

  • 4.11.0.307

Boolean : indeterminate

If true, the slider is considered to have an 'indeterminate' or '<?>' value. false by default.


Boolean : isEditing

Holds whether or not the value is currently being edited. (Read Only)

Since:

  • 4.11.0.307

String : label

Holds the label text for the slider.


Boolean : labelVisible

Holds whether or not the slider's label is visible.


Number : max

Holds the maximum value of the slider. Any attempt to set this to a value that is less than the current min will fail.


Number : min

Holds the minimum value of the slider. Any attempt to set this to a value that is greater than the current max will fail.


Boolean : restorable

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

Since:

  • 4.11.0.369

Number : sensitivity

Holds the sensitivity of the slider.


String : text

Holds the text of the slider. (Read Only)


Boolean : textEditable

Holds whether or not the slider text is editable by the user. false by default.


Boolean : textVisible

Holds whether or not the slider text is visible to the user. true by default.


Number : value

Holds the current value of the slider.

Constructors


DzIntSlider( DzWidget parent )

Creates a slider as a child of the given parent widget.

Parameter(s):

  • parent - The widget parent for the slider.

Signals


void : editCancelled()

Signature:“editCancelled()”

Emitted when the user cancels an edit of the slider.

Since:

  • 4.11.0.307

void : editEnd()

Signature:“editEnd()”

Emitted when the user releases the slider.


void : editStart()

Signature:“editStart()”

Emitted when the user starts dragging the slider.


void : valueChanged( Number value )

Signature:“valueChanged(int)”

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