[Gambas-user] progressbar

Benoit Minisini gambas at ...1...
Sat Sep 8 10:21:53 CEST 2007


On vendredi 07 septembre 2007, Toni Foerster wrote:
> 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
>

This is fixed in the last revision.

Regards,

-- 
Benoit Minisini




More information about the User mailing list