--- Ray Giarratana <[EMAIL PROTECTED]> wrote:

> I'm sorry if this keeps coming up time after time, but this
> must be the
> craziest part of using RB. Something as simple as a ProgressBar
> that's just
> much more pain to use than it should be.

Take two of these and call me in the morning:

http://www.bucktailsoftware.com/developer/#LongTask

:)

Or if you want a more specific answer:  To keep your progress bar
updated while in a tight loop, use a counter, and only update it
every 10th or 20th or 100th time through (depending on how tight
your loop is).  You may need to play with it a bit to find which
number gives you the best trade-off between keeping your loop
speedy and keeping your user informed.

The LongTask classes are free to use, and provide an easy way to
have a progress bar that shows up if your task goes more than
some short period of time (like about 1.5 seconds, IIRC). 
LongTask comes with a progress dialog, a timer, and a Thread
sub-class with built-in methods for setting the Description (what
the process is doing), max value, current value, and
(experimentally) estimated time remaining.

HTH


Mark Nutter

Quick and easy regex creation and debugging!
http://www.bucktailsoftware.com/products/regexplorer/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to