object:setValue()

Type Function
Library widget.*
Return value none
Revision Current Public Release (2017.3068)
Keywords widget, sliding control, SliderWidget, setValue
See also object.value
widget.newSlider()
SliderWidget

Overview

Changes the SliderWidget handle position, as well as the object.value property.

Syntax

object:setValue( percent )
percent (required)

Number. The slider's handle location by percentage.

Example

-- Set slider to 30% full
mySlider:setValue( 30 )