v11.0 (2013)
Adds a menu item to the end of the menu and attaches a callback function. This method is similar to Menu.AddCallbackItem but specific to the python language.
Object Menu.AddCallbackItem2( String in_pLabel, String in_pszCallback ); |
oReturn = Menu.AddCallbackItem2( Label, Callback ); |
The newly created MenuItem object.
Parameter | Type | Description |
---|---|---|
Label | String | The menu item label. |
Callback | String | The name of the callback function. Important: The function must be implemented in the self-installed menu plug-in file. |