Similar To Progress Bar

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,
I would like a component that is similar to a progress bar but moves
automatically, ie when it finished it restarts again. Exactly I
require something similar to that bar shown while loading windowsXP.

Does some sort of this component exist.


Thanks
 
Have you considered trying to use an animated .gif with an ImageButton with
its visibility property toggled on and off as required?
 
Xarky,

Personally, I would just set the style (through a call to GetWindowLong
and SetWindowLong) to PBM_MARQUEE and then set the marquee mode to true
(through a call to SendMessage). Once you do that, you can get the exact
effect you are looking for (instead of having to paint it yourself).

Hope this helps.
 
Hi,

Unless you really like doing things the hard way you could just make a user
control containing a fully docked ordinary progress bar and add a timer to
do whatever progress speed you want. With hard coded times you just have to
write 4 lines of code (the designer does the rest) or you could add a few
more lines to expose a few relevant properties.

Cheers

Doug Forster
 
Back
Top