关于mdi孩子的问题 [英] question about mdi child

查看:82
本文介绍了关于mdi孩子的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用不同的工具栏,按钮,输出等创建多个子窗体,以及如何以编程方式触发这些Childs,如果有一些参考,有价值的书籍,我将非常感谢您的帮助





谢谢

解决方案

你可以在很多地方找到它,例如,< a href =http://www.winprog.org/tutorial/app_four.html> http://www.winprog.org/tutorial/app_four.html [ ^ ]。



但是,这个话题不是很受欢迎;这是可以解释的。以下是这个想法:谁需要MDI?为什么要折磨自己并吓跑你的用户?

帮自己一个大忙:根本不要使用MDI。没有它,您可以更轻松地实现设计,质量更好。 MDI甚至被微软高度劝阻,事实上,微软将其从WPF中删除并且很难支持它。更重要的是,如果您使用MDI,您将吓跑所有用户。只是不要。请参阅:

http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages

如何在WPF中创建MDI父窗口?



没有那么多的UI设计如此不方便和繁琐。我认识的每个人(我知道很多计算机人员,而不仅仅是开发人员)讨厌这样的用户体验并且非常同意我的看法。您找不到任何使用此类设计的严肃公司或UI开发人员。



相反,您可以使用主窗口开发更好的UI,而不是计算一些少数模态窗口。您放在单独的MDI子窗口(窗口)中的视图可以很好地放在主窗口的某些控件中;并且它们的控制可以比MDI儿童更好地发挥作用,从而提供更好的用户体验。使用选项卡式UI,或可停靠(或组合),或由树/列表视图TOC页面样式控制,或折叠面板或类似的东西。







例如,要了解人们如何开发选项卡式UI,您可以查看此CodeProject文章: MFC文档视图应用程序中的选项卡式视图接口 [ ^ ]。



这是一些MSDN示例: https://msdn.microsoft.com/en-us/library/bb982946%28v=vs.90%29.aspx [ ^ ]。



参见: https://msdn.microsoft.com/en-us/library/65dtx4a4.aspx [ ^ ]。



-SA

I want to know how to create multiple child forms with different toolbars, buttons , outputs, etc. and how I do trigger these Childs programmatically , if there are some references, valuable books, I will appreciated your help


thanks

解决方案

You could find it in many places, for example, http://www.winprog.org/tutorial/app_four.html[^].

However, this topic is not extremely popular; and that's quite explainable. Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?
Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it out of WPF and will hardly support it. More importantly, you will scare off all your users if you use MDI. Just don't. Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages,
How to Create MDI Parent Window in WPF?.

There are not so many UI designs that are so inconvenient and cumbersome. Everyone I know (and I know very many computer people, not just developers) hate such user experience and well agree with me. You cannot find any serious company or UI developer using such design.

Instead, you can develop better UI using just on main window, not counting some small number of modal windows. The views you put in separate MDI children (windows), could be well put in some controls withing the main window; and they controls could act much better than MDI children, giving much better user experience. Use tabbed UI, or dockable (or combined), or controlled by tree/list view TOC-page style, or folding panels or something like that.

[EDIT]

For example, to see how people develop tabbed UI, you can take a look at this CodeProject article: Tabbed View Interface in an MFC Doc View Application[^].

And this is some MSDN sample: https://msdn.microsoft.com/en-us/library/bb982946%28v=vs.90%29.aspx[^].

See also: https://msdn.microsoft.com/en-us/library/65dtx4a4.aspx[^].

—SA


这篇关于关于mdi孩子的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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