ProgressBar.CancelPressed

Description

Returns a Boolean value indicating whether (true) the Cancel button on the progress bar has been clicked.

C# Syntax

// get accessor
Boolean rtn = ProgressBar.CancelPressed;

Examples

VBScript Example

set progressbar = XSIUIToolkit.ProgressBar
progressbar.Maximum = 1000 
for i = progressbar.Minimum to progressbar.Maximum
	' If the user has pressed cancel then exit the loop
	if progressbar.CancelPressed then
		exit for
	end if
	' Otherwise increment
	progressbar.Increment 1		
next