Ruskin
9th September 2003, 02:36
I originally wrote this progress bar for Baan IV, back in July 2002. But have recently seen a post by; 'Guillaume.G' where the question about progress bars in Baan IV was asked. A posting was made by Asterix, with a text file that contained how to do this.

So have to give thanks to 'Markus Polzer' for letting me refine my original code (which was a little messy), to make the progress bar more "functional"... (See: Progress Bar in Baan IV (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=8249))

Thought that it would be handy, if anyone is interested in creating a progress bar on their Baan IV sessions...


The best way to call this is by;

- Following sets x postion, y position, size and colour, it does NOT create the progress bar, but just sets the settings of the bar... NOTE: if size is -1 then the bar takes up the entire width of the form (and the x position is ignored). If y position is zero, then the bar is placed at the bottom of the screen. This is the best example of it's use...
igen0000.init.progress.bar(0, 0, -1, PBAR.COLOUR.WHITE)

- Following creates the progress bar. Pass through the count of how many records are being processed...
igen0000.create.variable.progress.bar(total.record.count)

- Following updates the progress bar. Pass through the caption and the record number you are up to...
igen0000.update.variable.progress.bar("Item: " & tiitm001.item, current.count)

- Following destroys the progress bar...
igen0000.destroy.variable.progress.bar()



For more information, just see the comments in the attached text file (there are other functions that can be used as well, but they are documented in the text file)...

Ruskin
9th September 2003, 02:42
sorry all... if I had looked before I posted this, I would have seen the posting by brian_baan....

my apologies (but the attached file above, is pretty functional).