CGPROGRESSBAR__DEFINE
This program is used to draw a progress bar on the display.
Categories
Graphics
Examples
To display a progress bar in a program with a FOR loop::
cgProgressBar = Obj_New("CGPROGRESSBAR", /Cancel)
cgProgressBar -> Start
FOR j=0,9 DO BEGIN
IF cgProgressBar -> CheckCancel() THEN BEGIN
ok = Dialog_Message('The user cancelled operation.')
Return
ENDIF
Wait, 0.5 ; Would probably be doing something ELSE here!
cgProgressBar -> Update, (j+1)*10
ENDFOR
cgProgressBar -> Destroy
An additional example can be found my compiling the program and typing
this command::
IDL> ProgressBar_Example
Author
FANNING SOFTWARE CONSULTING::
David W. Fanning
1645 Sheely Drive
Fort Collins, CO 80526 USA
Phone: 970-221-0438
E-mail: david@idlcoyote.com
Coyote's Guide to IDL Programming: http://www.idlcoyote.com
History
Change History::
Written by: David W. Fanning, 27 September 2012. Inspired by Ronn Kling's program krProgressBar.
Copyright
Copyright (c) 2012, Fanning Software Consulting, Inc.