IMenuObject

Scriptable object

Description

Menu object

Properties

Property Description
Handle Returns native HANDLE_PTR handle
ItemCount Returns items count

Methods

Method Description
AddItem Adds new context menu handler or separator when handler is NULL
AddSubMenu Adds sub menu
DeleteItem Delete item by position
equals Compare, if objects are equal
GetCommand Returns command handler from position
GetMenuItemPos Finds menu position by command name
GetSubMenu Returns sub menu from position
InsertItem Inserts new context menu handler or separator when handler is NULL
InsertSubMenu Insert sub menu
SetDefaultItem Sets default menu item (bold)
Track Track menu object or from cursor or mouse position and returns selected handler

See Also

IContextMenuHandler::Init, IListPaneEvents::onInitContextMenu, IMainMenuHandler::Init, IMainMenuHandler::OnSubMenuUpdate, IMenuLocation::Menu, IOutputPaneEvents::onInitContextMenu, ITextView::CreatePopupMenu, IUIEvents::onMenuCreate

#API