[Gambas-user] Progressbar problem

Fabien Bodard gambas.fr at ...626...
Wed Nov 29 11:01:17 CET 2006


2006/11/28, R. Stormo <rohnny at ...1248...>:
>
> 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
>

> 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.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


DIM i AS Integer
ProgressBar1.Visible = TRUE
 wait
 FOR i = 1 TO 246
     ProgressBar1.Value += 0.004
     ProgressBar1.Refresh
  NEXT
ProgressBar1.Visible = FALSE




More information about the User mailing list