public uint AddMainMenu( string strMainMenuText, string strMainMenuTextReference, string strMenuName, string strActionName, string strStatusText, int nInsertPosition )
public: uint AddMainMenu( String^ strMainMenuText, String^ strMainMenuTextReference, String^ strMenuName, String^ strActionName, String^ strStatusText, int nInsertPosition )
Parameters
- strMainMenuText
- Text of the new main menu.
- strMainMenuTextReference
- This is the name of an existing main menu where the new menu should inserted at.
- strMenuName
- The name of the first menu in this main menu.
- strActionName
- Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here. Must be unique within menu.
- strStatusText
- Text shown in the status bar when menu is selected.
- nInsertPosition
- The count of main menus to step over before inserting. 0 inserts before, 1 inserts behind, MaxValue at end, MinValue at beginning
Return Value
The identifying command ID of the added menu item. Is valid as long as the application runs. Can be used to add another menu before/behind.