| Re: Status Bar Help [message #13675 is a reply to message #13673] |
Thu, 19 November 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Bernard Puc (bpuc@va.aetc.com) writes:
> I have a status bar widget which shows progress of a file read when
> that read involves a loop. Are there any ways of doing the same
> thing but for a single read without a loop? I have large image
> arrays which can take many seconds to load and would like a
> graphical feedback as to the progress.
If you know how long it is going to take to read the
file, more or less, you could implement the progress
indicator with a Timer event. The problem is that you
couldn't do anything useful with a Cancel button, since
you couldn't interrupt the read.
Given this, why not save yourself the trouble and just
do an Hourglass while the read is going on?
I realize that a progress indicator makes the user feel a bit
more secure that *something* is going on. Even though,
in this case, it probably isn't what the user thinks
it is. Still, good programs certainly take user
psychology into account. That is, *IF* you can understand
user psychology. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|