[Gambas-user] progressbar
Fabien Bodard
gambas.fr at ...626...
Sat Sep 8 09:12:32 CEST 2007
little round errors
2007/9/7, Toni Foerster <stonerl at ...1763...>:
> 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 SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list