object:setProgress()

Type Function
Library widget.*
Revision 2017.3111
Keywords widget, progress, progressViewWidget, setProgress
See also object:getProgress()
widget.newProgressView()
ProgressViewWidget

Overview

Sets the current progress of a ProgressViewWidget.

Syntax

object:setProgress( progress )
progress (required)

Number. The progress (percentage) at which to set the progress view. This value must be between 0.0 (empty) and 1.0 (100% full).

Example

-- Set the progress to 50%
progressView:setProgress( 0.5 )