IMenuObject
Scriptable object
Description
Menu object
Properties
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 |