User Tools

Site Tools


DzFloatSlider

DAZScript floating point (decimal) slider widget.

More...

Inherits :

Properties

Constructors

DAZ Script
DzFloatSlider ( DzWidget parent )

Signals

voideditEnd ()
voideditStart ()
voidvalueChanged ( Number value )

Detailed Description

A DzFloatSlider provides a control that allows a user to adjust a bounded floating point value.

Properties


Boolean : clamped

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


Boolean : displayAsPercent

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


Boolean : indeterminate

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


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.


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


DzFloatSlider( DzWidget parent )

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

Parameter(s):

  • parent - The widget parent for the slider.

Signals


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(float)”

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