View Single Post
  #2  
Old 11-09-2014, 09:53
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
with isdone, you must know that archive takes 1000 steps for progressgauge, so if you add 1000s for each archive you will not have any problems with isdone,

with time
you must use a timer and a longint variable, each and every 1000 milliseconds. add 1 second to the variable. and update the elapsed time label.
to calculate the remaining time do take the elapsed time variable and multiply it by progressbar max and divide by progressbar position(position must not be zero) and then add the variable to the result of the calculations.and there you have it.
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
buttignol (11-09-2014), y_thelastknight (11-09-2014)