« MSDE Detach Tricks | Main | MSDE Auto-Start, Windows 98 »

MenuItems MergeMenu MergeOrder MergeType

Not sure if these comments reflect reality or just the way things should be. Generally found the behavior very confusing, under documented, and most likely improperly implemented.

 

So I ended up writing my own menu merging functions.

 

MergeType as MenuMerge property of a MenuItem:

Add – The item will be added in a merge. Items appear in order, after existing items of the same or higher order.

Remove – The item is ignored in a merge.

Replace – Each replace item will appear after the Add/Remove items with equal order and replace the first Replace item with equal order.

MergeItems – The submenu items of the item are merged.

 

MergeOrder as int, zero based

Can’t use a MenuItem in more than one menu – use CloneMenu.

 

Menu.MergeMenu(Menu) – The order of the menu doesn’t matter. The order of the menuItems does.

 

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)