ProgressDialog looks very small on my Tablet and I usually do not use it in loops because the DoEvents in the loop slows the execution.
While working on the Treeview class I had an idea to show the progress but call the Doevents not every loop but after a group of cycles. This did speed up the execution and still the progress dialog was showing.
I put this trick together with an animated Gif to get this new Wait Class.
What you can't see in the picture is that the clock wanders around the panel, so you need to download it.
Edit: modified to 1.1 using mod in the loop.
Edit: forgot to mention, it needs GifDecoder by Agraham http://www.b4x.com/forum/additional...79-animated-gif-decode-library.html#post39784
Edit: updated to version 1.2 to correct a problem which appears only in debug - the gifdecoder cannot find the file in DirAssets.
Edit: Ver 2.0 includes a new method - show1, using a timer to do the job of the Doevent in a loop, for the cases that you have to wait for some event and there is no loop... (sorry for the short life of version 1.2)
While working on the Treeview class I had an idea to show the progress but call the Doevents not every loop but after a group of cycles. This did speed up the execution and still the progress dialog was showing.
I put this trick together with an animated Gif to get this new Wait Class.
What you can't see in the picture is that the clock wanders around the panel, so you need to download it.
Edit: modified to 1.1 using mod in the loop.
Edit: forgot to mention, it needs GifDecoder by Agraham http://www.b4x.com/forum/additional...79-animated-gif-decode-library.html#post39784
Edit: updated to version 1.2 to correct a problem which appears only in debug - the gifdecoder cannot find the file in DirAssets.
Edit: Ver 2.0 includes a new method - show1, using a timer to do the job of the Doevent in a loop, for the cases that you have to wait for some event and there is no loop... (sorry for the short life of version 1.2)
Attachments
Last edited: