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.

C# Syntax

Object Menu.AddCallbackItem2( String in_pLabel, String in_pszCallback );

Scripting Syntax

oReturn = Menu.AddCallbackItem2( Label, Callback );

Return Value

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.