object:setValue()

Type Function
Library widget.*
Return value none
Revision Release 2022.3683
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 )