ProgressDialogShow
sleep(250)
pnlWeek.LoadLayout("Week") ' It only take milliseconds... Doung a ProgressDialogShow here is a mistake.
ProgressDialogHide
sleep(250)
Hi DonManfred,
I understand your
It only take milliseconds... Doung a ProgressDialogShow here is a mistake. If the load takes milliseconds, there is no time to Show, before the Hide is executed. I understand.
My load takes about 10-15 seconds and starts by pressing a button. My users now press twice or more, because it looks nothing happening.
I test with your code and Yes it is showing now, but during the LoadLayout the ProgressDialog is freezing. Strange. Now I have lost of more milliseconds because of the sleep. Anyway, now it works.
Thank you for helping.
Best regards,
André