Re: Progress bar in win32 lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

Note that progress bars actually work in a 'block' mode..
i.e. -- what gets filled *will* depend on it's defined size.
For example:
PBar  = create(ProgressBar,"",Win,5,10,93,15,0),
PBar2 = create(ProgressBar,"",Win,5,35,123,20,0),
PBar3 = create(ProgressBar,"",Win,5,65,163,25,0)
...will all show exactly 10 'blue' blocks when they are *full*.
So if you:
setScrollPos(PBar_above,50)
...it will fill half-way for all the different sizes.
There is not necessarily any half-way if you haven't defined its displayed
size correctly.
-----------------------------------------------------------
Watch out for this bug! Progress bars do not work correctly if they are not
created LAST in your program for some strange reason, what happens is that if
manually set the progress amount (say 50 out of 100) it colors in only about
20% of the actual bar... but if you create the progress bar after all of your
other controls it functions correctly.

Pete King.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu