API Help
Eplan.EplApi.Gui Namespace / Menu Class / AddStaticMenuItem Method
The unique identifier of this menu. p.e. the action name.
Text of the new menu item.
Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here.
Text shown in the status bar when menu is selected.
The persistent menu id to insert the new one before. (or use the strInsertMenuIdentifier)
The menu identifier to insert the new one before. (or use the nPersistentCommandId)
The count of menus to step over before inserting. 0 inserts before, 1 inserts behind, MaxValue at end, MinValue at beginning
Add a Separator before the new insert menu
Add a Separator behind the new insert menu

In This Topic
AddStaticMenuItem Method
In This Topic
Adds a new static menu item. This menu is always restored at next start even when the dll is not yet loaded.
Syntax

Parameters

strMenuIdentifier
The unique identifier of this menu. p.e. the action name.
strText
Text of the new menu item.
strActionName
Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here.
strStatusText
Text shown in the status bar when menu is selected.
nPersistentCommandId
The persistent menu id to insert the new one before. (or use the strInsertMenuIdentifier)
strInsertMenuIdentifier
The menu identifier to insert the new one before. (or use the nPersistentCommandId)
nInsertPosition
The count of menus to step over before inserting. 0 inserts before, 1 inserts behind, MaxValue at end, MinValue at beginning
bSeparatorBefore
Add a Separator before the new insert menu
bSeparatorBehind
Add a Separator behind the new insert menu
Remarks
When this strMenuIdentifier is already found, the menu is changed in settings and will show the new menu at next start.
See Also