Vizard 7 » Command Index » Vizard modules » viz » <viz>.addProgressBar
7.6

<viz>.addProgressBar

Adds a progress bar affixed by default to the screen with a displayed message.

<viz>.addProgressBar(  
value  
scene = viz.MainScene  
parent = viz.SCREEN  
)  
value
A string that will be displayed on the progress bar.
scene = viz.MainScene
If the parent is viz.WORLD or viz.SCREEN, then the argument represents the scene to add the object to.
If the parent is viz.ORTHO, then the argument represents the window to add the object to.
If the parent is a valid node3d object, then the argument is ignored.
parent = viz.SCREEN
viz.WORLD
viz.SCREEN
viz.ORTHO
<node3d> object

Remarks

A progress bar is similar to a slider, except it is a solid block which can contain an optional text message.

Return Value

<node3d:GUI:progressbar> object

Example

object = viz.addProgressBar('50%')
object.set(.5)
object.setPosition([.5,.5,0])

See also

<viz>.addButton
<viz>.addButtonLabel
<viz>.addCheckbox
<viz>.addDropList
<viz>.addRadioButton
<viz>.addSlider
<viz>.addText
<viz>.addTextbox