哪个更好:MDI 子项还是无模式对话框?

发布于 2024-08-24 21:31:19 字数 21 浏览 4 评论 0原文

它们各自的优点和缺点是什么?

What's the pros and cons for each of them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

〗斷ホ乔殘χμё〖 2024-08-31 21:31:19

这取决于。

如果用户通常会同时关注一个文档,并且希望查看尽可能多的内容,请使用 MDI(或选项卡式 MDI)。

如果用户希望同时与许多较小的表单进行交互,请使用自有的非模态表单(例如工具窗口)。

您也可以使用两者,a Visual Studio。

It depends.

Use MDI (or tabbed MDI) if the user will generally focus on one document at once, and will want to see as much as possible.

Use owned non-modal forms (such as toolwindows) if the user will want to interact with many smaller forms at once.

You can also use both, a la Visual Studio.

仅此而已 2024-08-31 21:31:19

这取决于很多因素,最重要的是您希望用户如何与您的应用程序交互(或者他/她选择如何进行交互)。

例如,旧的互联网浏览方式是使用许多不同的窗口,这会使任务栏变得混乱。现在新的趋势是标签,每个人都在向它迈进。

相反,MS Office 却在朝着相反的方向发展。您曾经在一个窗口中打开很多文件,但现在它们在任务栏中杂乱无章。

选项卡的优点在于您可以一次看到所有选项卡,并且可以使用热键在它们之间快速切换。然而,Office 将这些文件隐藏在[菜单栏]-[窗口]-[文件名]中。文件之间的更改非常痛苦。

MDI 最初是为两种过时的模式而发明的,即“马赛克”模式,其中每个窗口都排列为具有大约相同的高度/宽度和“级联”模式。我从未遇到过喜欢这些模式的用户。

新趋势是拥有剪切窗口,就像 Slaks 所说的那样,例如在 Visual Studio 或大多数开发环境中,您需要同时查看大量数据。此方法显然是“马赛克”模式的继承者,但具有很大的优点,即每当您调整大小或移动单个窗口时,所有其他窗口都会自动重新排列。

It depends on many factor, the most important is how do you want your user to interact with your application (or how does he/she choose to do it).

For example the old internet browsing way was with a lot of different windows that would clutter up the taskbar. Now the new trend is with tabs and everyone is moving toward it.

On the contrary, MS Office is moving on the opposite direction. You used to have a lot of files opened in a single window but now they are cluttering up in the taskbar.

What is great about tabs is that you see them all at once and you can swap between then fast with hotkeys. Office however, was hiding those files in [menu bar]-[windows]-[file name]. Much of a pain to change between files.

MDI was first invented for two obsolete modes, which are "mosaic" where every window is arranged to have about the same height/width and "cascade". I never met a single user which liked those modes.

New trend is to have clipping windows, like Slaks said, such as in Visual Studio or most developpement environements where you need to see a lot of data at once. This method is the clear successor of the "mosaic" mode, but with the big advantage that whenever you resize or move a single window, all the other auto-rearrange.

清秋悲枫 2024-08-31 21:31:19

@SLaks 的回答+1。

如果用户需要使用显示的数据作为另一任务的一部分,那么拥有一些实际上是无模式的对话框样式窗口可能很重要。

例如,SQL Server Management Studio 中的某些对话框实际上是无模式的,尽管它们可能具有“确定”和“取消”按钮;数据库属性窗口真是一个庞然大物。

+1 for @SLaks's answer.

It may be important for your users to have some dialog-style windows that are actually modeless if they will need to use the displayed data as part of another task.

For example, some of the dialogs in SQL Server Management Studio are actually modeless, even though they may have OK and Cancel buttons; the Database Properties window is such a beast.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文