System Console and Toolkit Tcl Command Reference Manual

ID 683101
Date 6/20/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.1.22. set_current_progress

Description

This command is used to set the current progress bar value. By default, this value is set to 0 for 0%.

Availability

EYE_VIEWER

Usage

set_current_progress <progress>

ReturnType

Nothing

Returns

no return value

Arguments

progress
The new value of the progress bar.

Example

set_current_progress 0
set prog_max 100

for {set curr_prog 1} {$curr_prog <= $prog_max} {incr curr_prog 10} {
	after 250;

	# perfom some action ...

	# update current progress after action completes

	set_current_progress $curr_prog
}