コード例 #1
0
    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
            );
    }
コード例 #2
0
    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 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 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);
 }
コード例 #5
0
    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);
    }
コード例 #6
0
    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
            );
    }
コード例 #7
0
    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;
    }
コード例 #8
0
    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;
    }