object:setProgress()

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