How do i create a progress bar.
Thanx
do you mean without using the built in Windows progress bar functionality ? Assuming you do and you are using GAPI possibly with one of the toolkits available here you just need to work out some graphics with which to draw the bar and do a little maths to work out how far along the bar should be drawn dependant on the actual values you are working with.
For example:
if your processing a block of ram with 2 loops, your progress bar would look like:
x = outer_loop * inner_loop_size + inner_loop) / a_factor_to_hit_on_the_screen
This would give you a figure you can plot onto the screen as a line from say 0,0 to 0,x
the algo is realy going to depend on what you doing, but in most cases it's inside a loop, and can be easily worked out.
-B