Accueil → WINDEV 22 → force progress bars to reset
force progress bars to reset
Débuté par Peter Muckle, 17 mai 2017 16:53 - 4 réponses
Posté le 17 mai 2017 - 16:53
Hi All, I have some progress bars that I want to reset to 0, using the code 'PROGBAR=0'.

The reset is done before changing planes, but the bars aren't resetting without an edit field being selected first; once the keyboard has been used the bars reset, otherwise they don't (they are on a different place).

How can I force the progress bars to reset to 0 please? Thanks Pete
Posté le 17 mai 2017 - 17:34
Do a MultiTaskRedraw() after resetting them first?


Peter Holemans
Posté le 17 mai 2017 - 17:38
Thanks Peter,

Unfortunately MultitaskRedraw() isn't available in WM20


Posté le 17 mai 2017 - 20:21

try MultiTask(-1). Should do the trick.

You can also try to put the code in a procedure. Afaik Android (or WM?) does not refresh the screen as long as it is running in the same procedure. Not sure though...
Posté le 17 mai 2017 - 20:58
Thanks Arie, I'll try that.

I think the plane change has something to do with it, so I just made a new window and opened the original from there, which clears the controls.

Thanks again