[Gambas-user] progressbar

Toni Foerster stonerl at ...1763...
Fri Sep 7 19:25:26 CEST 2007


Hi,

today i played a little bit with gambas, just to get used to, and
something strange happened. Here is the code:

PUBLIC SUB _new()
  ProgressBar1.value = 0
   END

PUBLIC SUB Button1_Click()
  ProgressBar1.value = ProgressBar1.value - 0.1
END

PUBLIC SUB Button2_Click()
  ProgressBar1.Reset
END

PUBLIC SUB Button3_Click()
   ProgressBar1.value = ProgressBar1.value + 0.1
END

The progressbar is increasing in the following steps:

10% 20% 30% 40% 50% 59% 69% 79% 90% 100%

and decreases:

100% 90% 80% 70% 59% 50% 40% 30% 20% 10%

same happens if i increase with 0.05:

... 25% 29% 34% 39% 45% ...

and decrease from 100 is always:

100% 94% 89% 84% x9% x4%...

Regards Toni




More information about the User mailing list