0

Basically I have a popup window that I am trying to launch and have open while the rest of my UI loads(it's some canvas calls that take a second or two), but the behavior I'm getting is that the popup window doesn't display until everything has finished running. I'm literally just calling show on the popup window right before the canvas draws. Nothing fancy. How can I make the popup window show up first, so I can obscure the rest of my loading?

4

2 回答 2

2

如果你要画一两秒钟,你应该在另一个线程上做,而不是 UI 线程。然后通知 UI 线程在完成后再次更新。这样做,您将拥有一个响应式应用程序,它将显示对话框。

于 2016-08-24T21:38:37.880 回答
0

只需将初始化画布部分的代码放入可运行文件中,然后将其发布到 ui 线程。这种方式可以在 ui 完成设置之前显示弹出窗口。

于 2016-08-24T21:16:49.490 回答