[Gambas-user] Progress Bars

Benoit Minisini gambas at ...1...
Tue Jul 27 01:42:34 CEST 2004


On Tuesday 27 July 2004 01:24, Jeff Stillinger wrote:
> I need some assistance with progress bars.  I may have missed it, but
> does the progress bar have a max value property?
>
> --j

Actually not. The Value of the ProgressBar is a Float between 0.0 and 1.0. I 
didn't think that somebody could use ProgressBar as a jauge like you did !

You can replace it by two panels, the second (blue) inside the first (normal). 
Then you will set the width of the inside panel this way:

 InsidePanel.W = OutsidePanel.ClientW  * (CFloat(Value - MinValue) / (MaxValue 
- MinValue))

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list