public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        uint MenuID = new uint();            // Menü-ID vom neu erzeugten Menü

        MenuID = oMenu.AddMainMenu(          // Festlegen der Menü-ID des Objekts
            "Menü 2",                        // Name: Menü
            "Hilfe",                         // neben Menüpunkt
            "Hauptmenü mit einem Menüpunkt", // Name: Menüpunkt
            "MenuAction",                    // Name: Action
            "Statustext",                    // Statustext
            1                                // 1 = hinter Menüpunkt, 0 = vor Menüpunkt
            );

        oMenu.AddPopupMenuItem(
            "Popup-Menü mit...", // Name: Menü
            "Unterpunkt",        // Name: Menüpunkt
            "MenuAction",        // Name: Action
            "Statustext",        // Statustext
            MenuID,              // Menü-ID
            1,                   // 1 = hinter Menüpunkt, 0 = vor Menüpunkt
            true,                // Separator davor anzeigen
            false                // Separator dahinter anzeigen
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        uint MenuID = new uint();         // Menu ID from the newly created menu

        MenuID = oMenu.AddMainMenu(       // Set the menu ID of the object
            "Menu 2",                     // Name: Menu
            "Help",                       // next to the menu item
            "Main menu with a menu item", // Name: Menu item
            "MenuAction",                 // Name: Action
            "Status text",                // status text
            1                             // 1 = after menu item, 0 = before menu item
            );

        oMenu.AddPopupMenuItem(
            "Popup menu with ...", // Name: Menu
            "Sub-item",            // name: menu item
            "MenuAction",          // Name: Action
            "Status text",         // status text
            MenuID,                // Menu ID
            1,                     // 1 = after menu item, 0 = before menu item
            true,                  // Show separator in front of it
            false                  // show separator behind it
            );

        return;
    }
    public void MenuFunction()
    {
        // Main menu includes Entry "Left and Right"

        hndHMenu = DemoMainMenu.AddMainMenu(      // .AddMainMenu(
            "Demo L / R switching",               // MenuName,
            "Window",                             //  RightNebenMenuName,
            "Left and Right",                     // Entry name,
            "actLeftRight",                       // Item action,
            "Switch to Left & Right",             // Statustext,
            1);                                   //Entry position(1 = rear or 0 = front)
        hndMenuEntryL = DemoMainMenu.AddMenuItem( // .AddMenuItem(
            "Left",                               //Entry name,
            "actLeft",                            // Item action,
            "Hereby I switch to Left",            //  Statustext,
            hndHMenu,                             //  Menü-ID,
            1,                                    // Entry position(1 = rear or 0 = front),
            false,                                // Before seperator,
            false);                               // After seperator);
        hndMenuEntryR = DemoMainMenu.AddMenuItem( // .AddMenuItem(
            "Right",                              //Entry name,
            "actRight",                           // Item action,
            "Hereby I switch to Right",           //  Statustext,
            hndHMenu,                             //  Menü-ID,
            1,                                    // Entry position(1 = rear or 0 = front),
            false,                                // Before seperator,
            false);                               // After seperator);
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        uint MenuID = new uint(); // Menü-ID vom neu erzeugten Menü
        MenuID = oMenu.AddMainMenu( // Festlegen der Menü-ID des Objekts
            "Menü 2", // Name: Menü
            "Hilfe", // neben Menüpunkt
            "Hauptmenü mit einem Menüpunkt", // Name: Menüpunkt
            "MenuAction", // Name: Action
            "Statustext", // Statustext
            1 // 1 = hinter Menüpunkt, 0 = vor Menüpunkt
            );

        oMenu.AddPopupMenuItem(
            "Popup-Menü mit...", // Name: Menü
            "Unterpunkt", // Name: Menüpunkt
            "MenuAction", // Name: Action
            "Statustext", // Statustext
            MenuID, // Menü-ID
            1, // 1 = hinter Menüpunkt, 0 = vor Menüpunkt
            true, // Separator davor anzeigen
            false // Separator dahinter anzeigen
            );

        return;
    }
 public void MenuFunction()
 {
     // Hauptmenü inkl Eintrag "Links und Rechts"
     hndHMenu = DemoHauptMenue.AddMainMenu(      // .AddMainMenu(
         "Demo L/R Umschaltung",                 // Menüname,
         "Fenster",                              //  RechtsNebenMenüName,
         "Links und Rechts",                     // Eintragsname,
         "actLinksRechts",                       // Eintragsaktion,
         "Umschaltung auf Links & Rechts",       // Statustext,
         1);                                     //Eintragsposition(1= hinten bzw 0= vorne)
     hndMenuEntryL = DemoHauptMenue.AddMenuItem( // .AddMenuItem(
         "Links",                                //Eintragsname,
         "actLinks",                             // Eintragsaktion,
         "Hiermit schalte ich um auf LINKS",     //  Statustext,
         hndHMenu,                               //  Menü-ID,
         1,                                      // Eintragsposition(1= hinten bzw 0= vorne),
         false,                                  // TrennerDavor,
         false);                                 // TrennerDanach);
     hndMenuEntryR = DemoHauptMenue.AddMenuItem( // .AddMenuItem(
         "Rechts",                               //Eintragsname,
         "actRechts",                            // Eintragsaktion,
         "Hiermit schalte ich um auf Rechts",    //  Statustext,
         hndHMenu,                               //  Menü-ID,
         1,                                      // Eintragsposition(1= hinten bzw 0= vorne),
         false,                                  // TrennerDavor,
         false);                                 // TrennerDanach);
 }
Example #6
0
 public bool OnRegister(ref bool bLoadOnStart)
 {
     bLoadOnStart = true;
     Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();
     oMenu.AddMainMenu("Add-Ins", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp,
                       "Auto Drawing", "AutoDrawing", "C# custom add-in tool", 1);
     return(true);
 }
Example #7
0
    public void RegisterScriptCustomMenu()
    {
        Eplan.EplApi.Gui.Menu.MainMenuName helpMenu = Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp;
        Eplan.EplApi.Gui.Menu scriptMenu            = new Eplan.EplApi.Gui.Menu();

        uint menuId = scriptMenu.AddMainMenu("[Script Menu]", helpMenu, "MyMenu Text", "MyScriptActionWithMenu", "MyMenu Text...", 1);

        menuId = scriptMenu.AddMenuItem("FirstAddin Text", "FirstAction", "FirstAddin Text...", menuId, 1, false, false);
        menuId = scriptMenu.AddMenuItem("Create PDF", "CreatePDFAction", "Create PDF...", menuId, 1, false, false);
    }
Example #8
0
        /// <summary>
        /// This function is called by the framework of EPLAN, when the framework already has initialized its
        /// graphical user interface (GUI) and the add-in can start to modify the GUI.
        /// The function only is called, if the add-in is loaded on system-startup.
        /// </summary>
        /// <returns>true, if function succeeds</returns>
        public bool OnInitGui()
        {
            Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();
            var id = oMenu.AddMainMenu("Add-Ins", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp,
                                       "Auto EPLAN", GenGlobal.Action, "C# custom add-in tool", 1);

            oMenu.AddMenuItem("Auto drawing", GenGlobal.AutoDrawAction, "Auto Drawing", id, 1, false, false);
            oMenu.AddMenuItem("Import parts", GenGlobal.ImportPartAction, "Import parts", id, 1, false, false);
            return(true);
        }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        string strProjectpath = PathMap.SubstitutePath("$(PROJECTPATH)");
        string strPdfExample  = @"C:\test\test.pdf";
        string quote          = "\"";

        uint MenuID = new uint(); // Menu ID from the newly created menu

        MenuID = oMenu.AddMainMenu(
            "External Programs",                            // Name: Menu
            "Help",                                         // next to the menu item
            "Calculator",                                   // Name: Menu item
            "StartProcess / PROCESS: calc / PARAMETER: ''", // Name: Action
            "Open calculator ...",                          // Status text
            1                                               // 1 = Behind menu item, 0 = Before menu item
            );

        MenuID = oMenu.AddMenuItem(
            "Open project folder",                 // Name: Menu item
            "StartProcess / PROCESS: explorer / PARAMETER:"
            + quote + strProjectpath + quote,      // Name: Action
            "Open project folder in Explorer ...", // Status text
            MenuID,                                // Menu ID: Insert / Window Macro ...
            1,                                     // 1 = Behind menu item, 0 = Before menu item
            false,                                 // show separator in front of it
            false                                  // show separator behind it
            );

        MenuID = oMenu.AddMenuItem(
            "Character Map",                                   // Name: Menu item
            "StartProcess / PROCESS: charmap / PARAMETER: ''", // Name: Action
            "Open character table ...",                        // Status text
            MenuID,                                            // Menu ID: Insert / Window Macro ...
            1,                                                 // 1 = Behind menu item, 0 = Before menu item
            false,                                             // show separator in front of it
            false                                              // show separator behind it
            );

        MenuID = oMenu.AddMenuItem(
            "Open PDF",             // Name: Menu item
            "StartProcess / PROCESS:"
            + quote + strPdfExample + quote
            + "/ PARAMETER: ''",    // Name: Action
            "Open example PDF ...", // Status text
            MenuID,                 // Menu ID: Insert / Window Macro ...
            1,                      // 1 = Behind menu item, 0 = Before menu item
            false,                  // show separator in front of it
            false                   // show separator behind it
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        string strProjectpath = PathMap.SubstitutePath("$(PROJECTPATH)");
        string strPdfExample = @"C:\test\test.pdf";
        string quote = "\"";

        uint MenuID = new uint(); // Menü-ID vom neu erzeugten Menü

        MenuID = oMenu.AddMainMenu(
            "Externe Programme", // Name: Menü
            "Hilfe", // neben Menüpunkt
            "Taschenrechner", // Name: Menüpunkt
            "StartProcess /PROCESS:calc /PARAMETER:''", // Name: Action
            "Taschenrechner öffnen...", // Statustext
            1 // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            );

        MenuID = oMenu.AddMenuItem(
            "Projektordner öffnen", // Name: Menüpunkt
            "StartProcess /PROCESS:explorer /PARAMETER:"
                + quote + strProjectpath + quote, // Name: Action
            "Projektordner im Explorer öffnen...", // Statustext
            MenuID, // Menü-ID: Einfügen/Fenstermakro...
            1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false, // Separator davor anzeigen
            false // Separator dahinter anzeigen
            );

        MenuID = oMenu.AddMenuItem(
            "Zeichentabelle", // Name: Menüpunkt
            "StartProcess /PROCESS:charmap /PARAMETER:''", // Name: Action
            "Zeichentabelle öffnen...", // Statustext
            MenuID, // Menü-ID: Einfügen/Fenstermakro...
            1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false, // Separator davor anzeigen
            false // Separator dahinter anzeigen
            );

        MenuID = oMenu.AddMenuItem(
            "PDF öffnen", // Name: Menüpunkt
            "StartProcess /PROCESS:"
                + quote + strPdfExample + quote
                + " /PARAMETER:''", // Name: Action
            "Beispiel PDF öffnen...", // Statustext
            MenuID, // Menü-ID: Einfügen/Fenstermakro...
            1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false, // Separator davor anzeigen
            false // Separator dahinter anzeigen
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        string strProjectpath = PathMap.SubstitutePath("$(PROJECTPATH)");
        string strPdfExample  = @"C:\test\test.pdf";
        string quote          = "\"";

        uint MenuID = new uint(); // Menü-ID vom neu erzeugten Menü

        MenuID = oMenu.AddMainMenu(
            "Externe Programme",                        // Name: Menü
            "Hilfe",                                    // neben Menüpunkt
            "Taschenrechner",                           // Name: Menüpunkt
            "StartProcess /PROCESS:calc /PARAMETER:''", // Name: Action
            "Taschenrechner öffnen...",                 // Statustext
            1                                           // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            );

        MenuID = oMenu.AddMenuItem(
            "Projektordner öffnen",                // Name: Menüpunkt
            "StartProcess /PROCESS:explorer /PARAMETER:"
            + quote + strProjectpath + quote,      // Name: Action
            "Projektordner im Explorer öffnen...", // Statustext
            MenuID,                                // Menü-ID: Einfügen/Fenstermakro...
            1,                                     // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                 // Separator davor anzeigen
            false                                  // Separator dahinter anzeigen
            );

        MenuID = oMenu.AddMenuItem(
            "Zeichentabelle",                              // Name: Menüpunkt
            "StartProcess /PROCESS:charmap /PARAMETER:''", // Name: Action
            "Zeichentabelle öffnen...",                    // Statustext
            MenuID,                                        // Menü-ID: Einfügen/Fenstermakro...
            1,                                             // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                         // Separator davor anzeigen
            false                                          // Separator dahinter anzeigen
            );

        MenuID = oMenu.AddMenuItem(
            "PDF öffnen", // Name: Menüpunkt
            "StartProcess /PROCESS:"
            + quote + strPdfExample + quote
            + " /PARAMETER:''",       // Name: Action
            "Beispiel PDF öffnen...", // Statustext
            MenuID,                   // Menü-ID: Einfügen/Fenstermakro...
            1,                        // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                    // Separator davor anzeigen
            false                     // Separator dahinter anzeigen
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu();

        uint menuId; // Menü-ID vom neu erzeugten Menü

        menuId = menu.AddMainMenu(
            "Externe Programme",                            // Name: Menü
            "Hilfe",                                        // neben Menüpunkt
            "Taschenrechner",                               // Name: Menüpunkt
            "StartProcess /processName:calc /parameter:''", // Name: Action
            "Taschenrechner öffnen...",                     // Statustext
            1                                               // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            );

        string quote = "\"";

        menuId = menu.AddMenuItem(
            "Projektordner öffnen",                // Name: Menüpunkt
            "StartProcess /processName:explorer /parameter:"
            + quote + "$(PROJECTPATH)" + quote,    // Name: Action
            "Projektordner im Explorer öffnen...", // Statustext
            menuId,                                // Menü-ID: Einfügen/Fenstermakro...
            1,                                     // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                 // Separator davor anzeigen
            false                                  // Separator dahinter anzeigen
            );

        menuId = menu.AddMenuItem(
            "Zeichentabelle",                                  // Name: Menüpunkt
            "StartProcess /processName:charmap /parameter:''", // Name: Action
            "Zeichentabelle öffnen...",                        // Statustext
            menuId,                                            // Menü-ID: Einfügen/Fenstermakro...
            1,                                                 // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                             // Separator davor anzeigen
            false                                              // Separator dahinter anzeigen
            );

        string pdfFile = @"C:\test\test.pdf";

        menuId = menu.AddMenuItem(
            "PDF öffnen",                                            // Name: Menüpunkt
            "StartProcess /processName:" + quote + pdfFile + quote + // Name: Action
            " /parameter:''",
            "Beispiel PDF öffnen...",                                // Statustext
            menuId,                                                  // Menü-ID: Einfügen/Fenstermakro...
            1,                                                       // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                                   // Separator davor anzeigen
            false                                                    // Separator dahinter anzeigen
            );

        return;
    }
Example #13
0
    public void RegisterHHICustomMenu()
    {
        string actionCommandSetGraphicElement = "XGedStartInteractionAction /Name:XGedIaFormatGraphic /width:-16002 /color:30 /type:41 /patternlength:4mm /lineendstyle:0 /visible:1 /filled:0 /rounded:1 /radius:2mm";
        string actionCommandPutMacro          = "XGedStartInteractionAction /Name:XMIaInsertMacro /filename:\"D:\\Temp\\HHIMacro\\Basic training macro.ema\" /variant:0";

        Eplan.EplApi.Gui.Menu.MainMenuName helpMenu = Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp;
        Eplan.EplApi.Gui.Menu hhiMenu = new Eplan.EplApi.Gui.Menu();

        uint menuId = hhiMenu.AddMainMenu("[HHI]", helpMenu, "그래픽 요소 설정", actionCommandSetGraphicElement, "그래픽 요소의 형식 설정...", 1);

        menuId = hhiMenu.AddMenuItem("매크로 삽입", actionCommandPutMacro, "매크로 삽입...", menuId, 1, false, false);
    }
Example #14
0
        /// <summary>
        /// The function is called during Eplan initialization or registration the add-in, when GUI was already initialized and add-in can modify it.
        /// </summary>
        /// <returns></returns>
        public bool OnInitGui()
        {
            Eplan.EplApi.Gui.Menu sampleMenu       = new Eplan.EplApi.Gui.Menu();
            Eplan.EplApi.Gui.Menu sampleMenu_Child = new Eplan.EplApi.Gui.Menu();

            uint menuId = sampleMenu.AddMainMenu("[EPLAN API]", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, "FirstMenu", "ActionTest", "1st", 1);

            uint menuId2 = sampleMenu.AddPopupMenuItem("PopupMenuName", "ChildMenuName", "ActionPopupChildMenu1", "PopupMenuName", menuId, 1, false, false);



            return(true);
        }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        oMenu.AddMainMenu(
            "Menü 1", // Name: Menü
            "Hilfe", // neben Menüpunkt
            "Hauptmenü mit einem Menüpunkt", // Name: Menüpunkt
            "MenuAction", // Name: Action
            "Statustext", // Statustext
            1 // 1 = hinter Menüpunkt, 0 = vor Menüpunkt
            );

        return;
    }
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        oMenu.AddMainMenu(
            "Menu 1",                     // Name: Menu
            "Help",                       // next to the menu item
            "Main menu with a menu item", // Name: Menu item
            "MenuAction",                 // Name: Action
            "Status text",                // status text
            1                             // 1 = after menu item, 0 = before menu item
            );

        return;
    }
Example #17
0
    public void MenuFunction()
    {
        Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu();

        menu.AddMainMenu(
            "Menü 1",                                         // Name: Menü
            Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, // neben Menüpunkt
            "Hauptmenü mit einem Menüpunkt",                  // Name: Menüpunkt
            "MenuAction",                                     // Name: Action
            "Statustext",                                     // Statustext
            1                                                 // 1 = hinter Menüpunkt, 0 = vor Menüpunkt
            );

        return;
    }
Example #18
0
        /// <summary>
        /// This function is called by the framework of EPLAN, when the
        /// framework already has initialized its graphical user interface
        /// (GUI) and the add-in can start to modify the GUI.
        /// The function only is called, if the add-in is loaded on
        /// system-startup.
        /// </summary>
        /// <returns>true, if function succeeds</returns>
        public bool OnInitGui()
        {
            Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

            uint menuID = oMenu.AddMainMenu(
                "EPlaner", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp,
                "Экспорт XML для EasyServer", "SaveAsXMLAction",
                "Экспорт XML для EasyServer", 0);

            menuID = oMenu.AddMenuItem(
                "Экспорт технологических устройств в Excel",
                "ExportTechDevsToExcel",
                "Экспорт технологических устройств в Excel", menuID, 1,
                false, true);

            menuID = oMenu.AddMenuItem("Редактировать технологические объекты",
                                       "ShowTechObjectsAction",
                                       "Редактирование технологических объектов", menuID, 1,
                                       false, false);

            menuID = oMenu.AddMenuItem("Устройства, параметры объектов",
                                       "ShowDevicesAction", "Отображение устройств", menuID,
                                       int.MaxValue, false, false);

            menuID = oMenu.AddMenuItem(
                "Операции, ограничения и привязка объектов",
                "ShowOperationsAction", "Отображение операций", menuID, 1,
                false, true);

            menuID = oMenu.AddMenuItem("Обмен сигналами между проектами",
                                       "InterprojectExchangeAction",
                                       "Настройка межпроектного обмена сигналами", menuID, 1, false,
                                       false);

            menuID = oMenu.AddMenuItem(
                "Синхронизация названий устройств и модулей",
                "BindingSynchronization",
                "Синхронизация названий устройств и модулей", menuID, 1,
                false, false);

            menuID = oMenu.AddMenuItem("О дополнении", "AboutProgramm", "",
                                       menuID, 1, true, false);

            ProjectManager.GetInstance().Init();

            return(true);
        }
Example #19
0
    public void MenuFunction()
    {
        //Deklarationen
        uint MenuID      = new uint(); // Menü-ID vom neu erzeugten Menü
        uint MenuIDSQL   = new uint(); // Menü-ID vom neu erzeugten untermenenü
        uint MenuIDVer   = new uint(); // Menü-ID vom neu erzeugten untermenenü
        uint MenuIDPrj   = new uint(); // Menü-ID vom neu erzeugten untermenenü
        uint MenuIDTrans = new uint(); // Menü-ID vom neu erzeugten untermenenü

        Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu();

        // Hauptmenü mit einem Unterpunkt
        MenuID = oMenu.AddMainMenu(
            "Datenquelle",        // Name: Menü
            "Hilfe",              // neben...
            "Info",               // Name: Menüpunkt
            "ActionInfo",         // Name: Action
            "Info Einstellungen", // Statustext
            1                     // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            );

        // Menüpunkt Übersetzungsdatenbank
        MenuIDTrans = oMenu.AddPopupMenuItem(
            "Uebersetzungsdatenbank",                // Name: Menü
            "Lokale Daten",                          // Name: Menüpunkt
            "MenuActionTransLocal",                  // Name: Action
            "Auswahl lokale Übersetztungsdatenbank", // Statustext
            MenuID,                                  // Menü-ID:
            1,                                       // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                   // Seperator davor anzeigen
            false                                    // Seperator dahinter anzeigen
            );

        //Serverdaten
        oMenu.AddMenuItem(
            "Serverdaten",                              // Name: Menüpunkt
            "MenuActionTransServer",                    // Name: Action
            "Auswahl Übersetzungsdatenbank vom Server", // Statustext
            MenuIDTrans,                                // Menü-ID:
            1,                                          // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                      // Seperator davor anzeigen
            false                                       // Seperator dahinter anzeigen
            );

        // Menüpunkt Projekt Datenbank
        MenuIDPrj = oMenu.AddPopupMenuItem(
            "Projektdatenbank",                // Name: Menü
            "Lokale Daten",                    // Name: Menüpunkt
            "MenuActionPrjLocal",              // Name: Action
            "Auswahl lokale Projektdatenbank", // Statustext
            MenuID,                            // Menü-ID:
            1,                                 // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                             // Seperator davor anzeigen
            false                              // Seperator dahinter anzeigen
            );

        //Serverdaten
        oMenu.AddMenuItem(
            "Serverdaten",                         // Name: Menüpunkt
            "MenuActionPrjServer",                 // Name: Action
            "Auswahl Projektdatenbank vom Server", // Statustext
            MenuIDPrj,                             // Menü-ID:
            1,                                     // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                 // Seperator davor anzeigen
            false                                  // Seperator dahinter anzeigen
            );

        // Menüpunkt Artikel
        MenuIDSQL = oMenu.AddPopupMenuItem(
            "Artikel Daten",        // Name: Menü
            "Lokale Daten",         // Name: Menüpunkt
            "MenuActionPartslocal", // Name: Action
            "Auswahl lokale Daten", // Statustext
            MenuID,                 // Menü-ID:
            1,                      // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            true,                   // Seperator davor anzeigen
            false                   // Seperator dahinter anzeigen
            );

        oMenu.AddMenuItem(
            "Serverdaten",                  // Name: Menüpunkt
            "MenuActionPartsServer",        // Name: Action
            "Auswahl SQL Daten vom Server", // Statustext
            MenuIDSQL,                      // Menü-ID:
            1,                              // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                          // Seperator davor anzeigen
            false                           // Seperator dahinter anzeigen
            );

        // Menüpunkt Verzeichnisse
        MenuIDVer = oMenu.AddPopupMenuItem(
            "Verzeichnisse",                // Name: Menü
            "Lokale Ordner",                // Name: Menüpunkt
            "MenuActionVerLokal",           // Name: Action
            "Auswahl lokale Verzeichnisse", // Statustext
            MenuID,                         // Menü-ID:
            1,                              // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            true,                           // Seperator davor anzeigen
            false                           // Seperator dahinter anzeigen
            );

        //Serverdaten
        oMenu.AddMenuItem(
            "Server Ordner",                // Name: Menüpunkt
            "MenuActionVerServer",          // Name: Action
            "Auswahl SQL Daten vom Server", // Statustext
            MenuIDVer,                      // Menü-ID:
            1,                              // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                          // Seperator davor anzeigen
            false                           // Seperator dahinter anzeigen
            );

        // alles lokal
        oMenu.AddMenuItem(
            "alles Lokal",                         // Name: Menüpunkt
            "MenuActionAllLocal",                  // Name: Action
            "Alle Daten und Verzeichnisse vom PC", // Statustext
            MenuID,                                // Menü-ID:
            1,                                     // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt
            false,                                 // Seperator davor anzeigen
            false                                  // Seperator dahinter anzeigen
            );

        return;
    }