模态对话框和非模态对话框有什么不同?

ansys6 2003-02-25 01:56:34
?
...全文
79 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
cBeginner 2003-02-25
  • 打赏
  • 举报
回复
You can use Alt + Tab between two modeless dialogs.

You cannot use Alt + Tab between two model dialogs.
bluesmile979 2003-02-25
  • 打赏
  • 举报
回复
模态对话框:他的操作完成之前,你不能对其他窗口操作


非模态对话框:相对的,这个可以。一楼的兄弟说得很详细了。
shine333 2003-02-25
  • 打赏
  • 举报
回复
A dialog can be either modeless (the default) or modal. A modal
* dialog is one which blocks input to all other toplevel windows
* in the application, except for any windows created with the dialog
* as their owner.
baitianhai 2003-02-25
  • 打赏
  • 举报
回复
对话框分为模态对话框和非模态对话框两种.大部分读者都会有这样的经历,当你通过File-Open命令打开一个文件对话框后,再用鼠标去选择菜单将只会发出嘟嘟声,这是因为文件对话框是一个模态对话框.模态对话框垄断了用户的输入,当一个模态对话框打开时,用户只能与该对话框进行交互,而其它用户界面对象收不到输入信息.我们平时所遇到的大部分对话框都是模态对话框。非模态对话框的典型例子是Windows95提供的写字板程序中的搜索对话框,搜索对话框不垄断用户的输入,打开搜索对话框后,仍可与其它用户界面对象进行交互,用户可以一边搜索,一边修改文章,这样就大大方便了使用.

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧