In Activity_Create I have this code:
ProgressDialogShow("Loading...")
DoEvents
DoEvents
Activity.LoadLayout("main")
ProgressDialogHide
The layout as quite a few panels and views and takes a few seconds to load, hence the need for the progress dialog.
The progress dialog doesn't spin, presumably because until LoadLayout is finished it isn't getting updated.
How can I get the progress dialog to spin while the layout is loading? Or does it need to have a DoEvents incorporated into the LoadLayout routine?
ProgressDialogShow("Loading...")
DoEvents
DoEvents
Activity.LoadLayout("main")
ProgressDialogHide
The layout as quite a few panels and views and takes a few seconds to load, hence the need for the progress dialog.
The progress dialog doesn't spin, presumably because until LoadLayout is finished it isn't getting updated.
How can I get the progress dialog to spin while the layout is loading? Or does it need to have a DoEvents incorporated into the LoadLayout routine?