[英]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.