[Gambas-user] Progressbar problem

R. Stormo rohnny at ...1248...
Tue Nov 28 20:50:42 CET 2006


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

-- 
View this message in context: http://www.nabble.com/Progressbar-problem-tf2720540.html#a7586307
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list