[Gambas-user] Progressbar problem

Benoit Minisini gambas at ...1...
Wed Nov 29 11:11:38 CET 2006


On Tuesday 28 November 2006 20:50, R. Stormo wrote:
> I got my calculation correct. Thanks for that.
>
> Now I got another problem. I want to update the progress bar inside a for
> next loop and it does not update.
> I only turn on when the loop are finished. I have tried with refresh after
> value = value + 0.xx
> Also tried with a timer to run every 10ms but still no freshing of the
> progress.
>
> Looks like it do not show until it's finished :(
>
> Routine are
> Not working
>
> DIM i AS Integer
> ProgressBar1.Visible = TRUE
> FOR i = 1 TO 246
>   ProgressBar1.Value += 0.004
>   ProgressBar1.Refresh
> NEXT
> ProgressBar1.Visible = FALSE
>
> Does work
>
> DIM i AS Integer
> ProgressBar1.Enabled = TRUE
> FOR i = 1 TO 246
>   ProgressBar1.Value += 0.004
>   ProgressBar1.Refresh
> NEXT
> ProgressBar1.Enabled= FALSE
>
>
> Regards Rohnny
>       My Gambas Community http://gambasforum.tk

Nothing is refreshed if you don't call the event loop with WAIT. See the WAIT 
documentation for more details.

Regards,

-- 
Benoit Minisini





More information about the User mailing list