加载数据时冻结(请等待屏幕)屏幕 [英] Freeze(Please Wait screen) the screen while loading data

查看:62
本文介绍了加载数据时冻结(请等待屏幕)屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii,



请告诉我在加载数据时我们可以通过哪种方式冻结creen,以便用户不会互相阻塞,并且可以停止意外错误。 />


i知道可以通过多种方式告诉哪些方法会很好,因为我可能需要在很多页面上使用它。



提前致谢:)

Hii,

Please tell me by which way we can freez the creen while loading data so that user will not interuppt and unexpected error can be stop.

i know there can be many ways but also tell which will be good one as i may have to use it on many pages.

Thanks in advance :)

推荐答案

请参阅我对该问题的评论。别冻结,为什么?事实上,没有这样的UI概念。



更好的是简单地暂时禁用它的控件,只有那些在你加载时无效的控件。在单独的线程中加载。这样,UI将保持响应(用户可以,例如,调整窗口大小),但会清楚地向用户显示它尚未准备好。此外,显示一个沙漏鼠标光标。



-SA
Please see my comment to the question. Don''t freeze it, why? In fact, there is no such UI concept.

Better simply make its control temporarily disabled, and only those which are invalid to use during your loading. Do the loading in a separate thread. This way, the UI will remain responsive (the user can, say, resize the window), but will clearly show the user that it''s not ready. Also, show a hourglass mouse cursor.

—SA


谢谢大家..

我用updateProgress解决了它:)
Well thanks everyone..
I have solved it using updateProgress :)


在后台线程中运行弹出窗口。它指示数据加载消息。并在完成数据加载后终止后台线程。
Run a pop up in background thread.Which indicate data loading message. And Kill background thread after completing data loading.


这篇关于加载数据时冻结(请等待屏幕)屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆