public void MenuFunction() { Eplan.EplApi.Gui.ContextMenu oMenu = new Eplan.EplApi.Gui.ContextMenu(); Eplan.EplApi.Gui.ContextMenuLocation oLocation = new Eplan.EplApi.Gui.ContextMenuLocation( "Editor", "Cabinet3D" ); oMenu.AddMenuItem( oLocation, "Fenstermakro erstellen", "StoreWindowMacro", true, false ); oMenu.AddMenuItem( oLocation, "Symbolmakro erstellen", "StoreSymbolMacro", false, true ); }
public void CreateContextMenus() { Eplan.EplApi.Gui.ContextMenuLocation oCTXLoc = new Eplan.EplApi.Gui.ContextMenuLocation(); Eplan.EplApi.Gui.ContextMenu oCTXMenu = new Eplan.EplApi.Gui.ContextMenu(); #region 1st menu-entry try { oCTXLoc.DialogName = "XPlcIoDataDlg"; oCTXLoc.ContextMenuName = "1024"; oCTXMenu.AddMenuItem(oCTXLoc, "[SPS-Mnemonik tauschen]: E/A -> I/Q", "NAIROLF_ChangePLCMnemonics /DestMnemonik:IQ", false, false); } catch (System.Exception ex) { MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error); } #endregion #region 2nd menu-entry try { oCTXLoc.DialogName = "XPlcIoDataDlg"; oCTXLoc.ContextMenuName = "1024"; oCTXMenu.AddMenuItem(oCTXLoc, "[SPS-Mnemonik tauschen]: I/Q -> E/A", "NAIROLF_ChangePLCMnemonics /DestMnemonik:EA", false, false); } catch (System.Exception ex) { MessageBox.Show(ex.Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error); } #endregion }
public void PlaceHolderTranslateContextMenu() { //Context-Menüeintrag (hier im Platzhalterobjekt) Eplan.EplApi.Gui.ContextMenu oContextMenu = new Eplan.EplApi.Gui.ContextMenu(); Eplan.EplApi.Gui.ContextMenuLocation oContextMenuLocation = new Eplan.EplApi.Gui.ContextMenuLocation("PlaceHolder", "1004"); oContextMenu.AddMenuItem(oContextMenuLocation, "Übersetzen", "PlaceHolderTranslateAction", false, false); oContextMenu.AddMenuItem(oContextMenuLocation, "Übersetzungen entfernen", "PlaceHolderTranslateDeleteAction", false, false); }
/// <summary> /// Initiates the contextmenu entry in the page navigator. /// The method is seperated from Register() so that it is more easy to copy sections into other scriptfiles. /// </summary> public void InitiateMenu() { menuText = getMenuText(); menu = new Eplan.EplApi.Gui.ContextMenu(); menuLocation = new ContextMenuLocation("PmPageObjectTreeDialog", "1007"); menu.AddMenuItem(menuLocation, menuText, "OpenProjectFilePath", false, false); }
public void PlaceHolderMultiAddRecordContextMenu() { //Context-Menüeintrag (hier im Platzhalterobjekt) Eplan.EplApi.Gui.ContextMenu oContextMenu = new Eplan.EplApi.Gui.ContextMenu(); Eplan.EplApi.Gui.ContextMenuLocation oContextMenuLocation = new Eplan.EplApi.Gui.ContextMenuLocation("PlaceHolder", "1004"); oContextMenu.AddMenuItem(oContextMenuLocation, "Neuer Wertesatz (&Mehrfach)...", "PlaceHolderMultiAddRecord", false, false); }
public void CreateMenu() { ContextMenuLocation oCtxLoc = new ContextMenuLocation(); oCtxLoc.DialogName = "Editor"; oCtxLoc.ContextMenuName = "Ged"; Eplan.EplApi.Gui.ContextMenu oCTXMnu = new Eplan.EplApi.Gui.ContextMenu(); oCTXMnu.AddMenuItem(oCtxLoc, "Makro tauschen...", "XMSwapMacroFromMacroBoxAction", true, false); }
public void ProjectCopyContextMenu() { //Context-Menüeintrag string menuText = getMenuText(); Eplan.EplApi.Gui.ContextMenu oContextMenu = new Eplan.EplApi.Gui.ContextMenu(); Eplan.EplApi.Gui.ContextMenuLocation oContextMenuLocation = new Eplan.EplApi.Gui.ContextMenuLocation("XDTDataDialog", "4006"); oContextMenu.AddMenuItem(oContextMenuLocation, menuText, "ConnectionPointDesignationReverse", true, false); }
public void MenuFunction() { Eplan.EplApi.Gui.ContextMenu oMenu = new Eplan.EplApi.Gui.ContextMenu(); Eplan.EplApi.Gui.ContextMenuLocation oLocation = new Eplan.EplApi.Gui.ContextMenuLocation( "PmPageObjectTreeDialog", "1007" ); oMenu.AddMenuItem( oLocation, "PDF erstellen", "PagePdf", true, false ); }
public void MenuFunction() { Eplan.EplApi.Gui.ContextMenu oMenu = new Eplan.EplApi.Gui.ContextMenu(); Eplan.EplApi.Gui.ContextMenuLocation oLocation = new Eplan.EplApi.Gui.ContextMenuLocation( "Editor", "Ged" ); oMenu.AddMenuItem( oLocation, "Seite drucken", "MenuAction", true, false ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.ContextMenu oMenu = new Eplan.EplApi.Gui.ContextMenu(); Eplan.EplApi.Gui.ContextMenuLocation oLocation = new Eplan.EplApi.Gui.ContextMenuLocation( "PmPageObjectTreeDialog", "1007" ); oMenu.AddMenuItem( oLocation, "Seite(n) drucken", "PrintPages", true, false ); return; }