Re: How to display messages to the user during long processes!!
I think an approx. progress bar is better than none, but one that jumps from
0 to 100 is pretty useless. The thing to strive for is periodic feedback if
the process is going to take a long time. I'm not sure why this is the case
with an XML file unless it is huge. I can parse a 500K line XML file before
the progress bar even displays so I haven't found it useful to show that
kind of feedback.
Tom
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:rfhid494n5j1nf5rjsktvddtr8e515ljak@4ax.com...
I have an article in www.codeguru.com (linked to from my Web site) on how
to put progress
controls on a status bar.
In my PowerPoint Indexer, I have a dialog that does nested progress bars
as various
#includes are processed (I allow the user to start with one presentation
and pull in a
second one for a composite index). The whole point was to allow for early
termination.
Many parsing libraries have hooks for various events; the XML libraries I
use all do.
That's where I just ask the current file position of the input file. It
isn't quite
dead-on because it represents where the file pointer is, not where the
internal buffers
are, but it is a good enough approximation for a progress bar.
joe