v11.0 (2013)
Adds a menu item at to end of the menu. This method is similar to Menu.AddItem but specific to the python language.
Object Menu.AddItem2( String in_pLabel, siMenuItemStyle in_style ); |
oReturn = Menu.AddItem2( Label, Style ); |
If the style is siMenuItemSubmenu the newly created Menu is returned. Otherwise the newly created MenuItem is returned.
Parameter | Type | Description |
---|---|---|
Label | String | The menu item label. |
Style | siMenuItemStyle | The menu item style, for example siMenuItemSubmenu. |
MenuItem Menu.AddSubMenu Menu.AddSeparatorItem Menu.AddCommandItem Menu.AddCallbackItem Definition Callbacks for Menus Simple Menu plug-in example