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); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); uint menuid; menuid = oMenu.AddMainMenu("Elexco", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, "Open Project...", "ElexcoOpen", "Open menu with an opendialog", 1); return; }
public void CreateMenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); uint menuid; menuid = oMenu.AddMainMenu("Project And Macro", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuProject, "Open Project...", "ElexcoOpen", "Open menu with an opendialog", 1); oMenu.AddMenuItem("Open Macro Project...", "ElexcoOpenMacro", "", menuid, 1, false, false); oMenu.AddMenuItem("Open Current Project Folder...", "ElexcoOpenProjectFolder", "", menuid, 1, false, false); oMenu.AddMenuItem("Setting...", "ElexcoSetFolder", "", menuid, 0, true, true); return; }
public bool OnInitGui() { Eplan.EplApi.Gui.Menu sampleMenu = new Eplan.EplApi.Gui.Menu(); Eplan.EplApi.Gui.Menu sampleMenu_Ch = new Eplan.EplApi.Gui.Menu(); uint menuId = sampleMenu.AddMainMenu("[API Test Menu]", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, "Api Ext Sample", "ActionApiExtSimple", "Api Ext Sample", 1); menuId = sampleMenu.AddMenuItem("Call Other Action", "ActionApiExtCallOtherAction", "Call Other Action", menuId, 1, false, false); menuId = sampleMenu.AddMenuItem("Api Samples", "ActionApiExtSamples", "Api Samples", menuId, 1, false, false); menuId = sampleMenu.AddPopupMenuItem("PopupMenuName", "ChildMunuName", "ActionApiExtTest123", "PopupMenuName", menuId, 1, false, false); return(true); }
public void MenuFunction() { uint intIDUntermenue1; // MenuID Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); intIDUntermenue1 = oMenu.AddMainMenu( "ePlanus", // Hauptmenüname "Hilfe", // neben Menüpunkt... "< ePlanus.de >", // Menüpunktname "ePlanus", // Action "ePlanus.de - Scripting in Eplan ist einfach (toll)", // Statustext 1 // Hinter Menüpunkt x ); // Untermenüpunkte oMenu.AddMenuItem( "Abbruchstellenkonfigurator", // Menüpunktname "Abbruchstellen", // Action "ePlanus - Abbruchstellenkonfigurator", // Statustext intIDUntermenue1, // Menü-ID 1, // 1 = Hinter Menüpunkt X false, // Seperator davor false // Seperator dahinter ); }