But as I write multi-level routines, I my formulas for calculating the progress for a single progress bar got way to complex and annoying to maintain. So I wanted to make something similiar - a multi-level progress bar, where each level of the routine can report to a different bar.
Like say you want to copy files from one drive to another. You could have 3 levels of progress bars, 1 for how many files to copy on the whole drive, 1 for how many files to copy in the current directory, and 1 bar for progress of copying the current file.
Anyway, have a look - I included the source and a demo program.
This UDF isn't finished, I still have plans for it, like:
I want to put a cancel button on the progress bar that would report back to the calling routine. But I'm not sure how to do this, because I don't know if the script that called it would be in Event or Poll mode.
I want to make the window adjust to the number of progress bars on it. Right now the size is static, and it holds about 4 bars. This shouldn't be hard to do, I just haven't taken the time to do it.
Add an option button to see a text log of all the progress so far, and maybe even an option to save this log. This would be a quick and easy way to add logging to all my routines.
Edited by blindwig, 07 July 2005 - 06:55 AM.