force progress bars to reset

Startbeitrag von Peter Muckle am 17.05.2017 14: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

Antworten:

Do a MultiTaskRedraw() after resetting them first?

Cheers,

Peter Holemans

von Peter Holemans - am 17.05.2017 15:34
Thanks Peter,

Unfortunately MultitaskRedraw() isn't available in WM20

Cheers

Pete

von Peter Muckle - am 17.05.2017 15:38
Peter,

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...

von Arie - am 17.05.2017 18:21
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

Pete

von Peter Muckle - am 17.05.2017 18:58
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.