简体   繁体   English

合并MDI菜单

[英]Merging MDI menu

I have a main form with the following MenuStrip 我有以下MenuStrip的主窗体

File          Window
 New Child
 Exit

And a second MDI child with these items 还有第二个MDI孩子带着这些物品

File    Edit
  Save
  New

no matter how I set the properties MergeAction for both of this ToolStrip objects I cannot get such a structure after the child form is displayed for the main menu. 不管我如何为这两个ToolStrip对象都设置属性MergeAction ,在为主菜单显示子窗体之后,都无法获得这样的结构。

File Window Edit

where File would be merged nicely with the items form child window. File将与项目窗体子窗口很好地合并。

Any other ideas how to achieve this behavior? 还有其他想法如何实现这种行为?

Set parent: New Child merge index to 2 Set parent: 新子级 合并索引设置2
Set parent: Exit merge index to 3 Set parent: 退出 合并索引3
Set child: File merge action to MatchOnly Set child: 文件 合并操作设置MatchOnly
Set child: Save merge action to Insert and merge index to 0 Set child: 合并操作 保存为“ 插入并将合并索引设为0”
Set child: New merge action to Insert and merge index to 1 Set child: 插入的 合并操作 ,并将合并索引设置1

Leave all other to default settings. 将其他所有设置保留为默认设置。 Also both MenuStrips must have their property AllowMerge set to true 同样,两个MenuStrips必须将其属性AllowMerge设置为true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM