运行时基于表单的应用程序设计 [英] form based appilcation design at runtime

查看:86
本文介绍了运行时基于表单的应用程序设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个父母表格和该父母的2个MDI子表格.

1)MDIMessagesChild表单
2)MDIEnvironmentChild表格.

问题编号1)当我们单击父窗体的菜单项之一时,应打开这些MDI窗体,而当我们取消选中菜单项时,这些子窗体应消失.
问题编号2)当这些子窗体触摸父窗体的菜单栏时,它应该是父窗体菜单栏的一部分,如果触摸父窗口的任何边缘,则它应该是父窗体那一侧的一部分.

请提出一些设计此类控件的代码段.



I have one parent form and 2 MDI child forms for that parent.

1)MDIMessagesChild Form
2)MDIEnvironmentChild Form.

Question number1) when we click on one of menu item of parent form these MDI forms should be opened and when we uncheck menuitem these childs should be dissapeared.
Question number2) when these child forms touchs the menu bar of parent form it should be part of menubar of parent and if touch any edge of parent window it should be part of that side of parent.

please suggest some code snippet for designing this kind of controls.

推荐答案

1)创建窗口,只需切换窗口的可见性即可.

2)看一下以下文章:
像Dock容器一样的Visual Studio IDE [ Magic Library Docking Manager Designer [
1) Create the windows, and just toggle the visiblity of the windows.

2) Have a look at the following articles:
Visual Studio IDE like Dock Container[^]
Magic Library Docking Manager Designer[^]

Best regards
Espen Harlinn


这篇关于运行时基于表单的应用程序设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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