public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { //fKey.FKeyTextAlign = System.Drawing.ContentAlignment.BottomLeft; //fKey.FKeyImageAlign = System.Drawing.ContentAlignment.TopCenter; fKey.FKeyText(1, tclm.GetString("FormMView.tcFKey1[1]", "Load")); }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { fKey.FKeyText(1, "MenĂ¼"); fKey.FKeyText(2, "Test"); fKey.FKeyText(3, "Swap"); fKey.FKeyText(4, "MenĂ¼2"); }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { if (enableFKeyFunc) { fKey.FKeyText(7, "Save", Image.FromFile(Application.StartupPath + "\\Bitmap\\Save.ico")); } fKey.FKeyImageAlign = System.Drawing.ContentAlignment.TopRight; }
private void SetFunctionKeys(Beckhoff.App.TcFKey fKey) { /* MK * fKey.InstallFKeyDelegate(null, new FKeyDelegate(FKeyUpEvent)); * fKey.FKeyTextAlign = System.Drawing.ContentAlignment.BottomLeft; * fKey.FKeyImageAlign = System.Drawing.ContentAlignment.TopCenter; * SetFKeyText(fKey); */ }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { fKey.FKeyTextAlign = System.Drawing.ContentAlignment.BottomLeft; fKey.FKeyImageAlign = System.Drawing.ContentAlignment.TopRight; fKey.FKeyText(1, tclm.GetString("FormMaschPara.tcFKey1[1]", "Help"), Image.FromFile(Application.StartupPath + "\\Bitmap\\Help.ico")); fKey.FKeyText(6, tclm.GetString("FormMaschPara.tcFKey1[6]", "Save"), Image.FromFile(Application.StartupPath + "\\Bitmap\\Save.ico")); fKey.FKeyText(7, tclm.GetString("FormMaschPara.tcFKey1[7]", "Write to PLC")); }
private void SetLanguageKeys(Beckhoff.App.TcFKey fKey) { fKey.InstallFKeyDelegate(null, new FKeyDelegate(FKey1UpEvent)); string[] availableLanguages = tclm.AvailableLanguages; string[] availableFlags = tclm.AvailableFlags; for (int i = 0; i < availableLanguages.Length; i++) { fKey.FKeyText(i + 1, availableLanguages[i], Image.FromFile(Application.StartupPath + availableFlags[i])); } aktuelleSprachversion = tclm.Translate(tclm.Sprache, "DEUTSCH", tclm.Sprache); }
private void SetFKeyOpModeStatus(int nIdx) { bool bAutomaticMode = false; bool bManualMode = false; bool bMDIMode = false; tcFKeyOpMode.FKeyBackColor(1, Beckhoff.App.TcColor.Gray); tcFKeyOpMode.FKeyBackColor(2, Beckhoff.App.TcColor.Gray); tcFKeyOpMode.FKeyBackColor(3, Beckhoff.App.TcColor.Gray); tcFKeyOpMode.FKeyBackColor(4, Beckhoff.App.TcColor.Gray); tcFKeyOpMode.FKeyBackColor(nIdx, MainApp.GetDoc().ColorCaption); Beckhoff.App.TcFKey fkey = MainApp.GetDoc().tcFKey1; fkey.FKeyText(1, "", null, Color.Empty); fkey.FKeyText(2, "", null, Color.Empty); fkey.FKeyText(3, "", null, Color.Empty); switch (nIdx) { case 1: // Automatic bAutomaticMode = true; break; case 2: // Manual fkey.FKeyText(1, "", Image.FromFile(Application.StartupPath + "\\Bitmap\\Key_M.ico"), Color.Yellow); fkey.FKeyText(2, "", Image.FromFile(Application.StartupPath + "\\Bitmap\\Eilgang.ico")); fkey.FKeyText(3, "", Image.FromFile(Application.StartupPath + "\\Bitmap\\Key_P.ico"), Color.Yellow); if (SpecialFunc.ManualModeRapidFeed) { fkey.FKeyBackColor(2, Color.Orange); } else { fkey.FKeyBackColor(2, Color.Yellow); } bManualMode = true; break; case 3: // MDI bMDIMode = true; break; case 4: // Reference break; } // selects the right screen ManualModeSelected(bManualMode); opModeAuto1.Visible = bAutomaticMode; opModeManual1.Visible = bManualMode; opModeMDI1.Visible = bMDIMode; }
public void CurrentGroup(int group) { tcAppPlcManual1.SetCurrentGroup(group - 1); // Mark the button as selected, if the standard groups are used Beckhoff.App.TcFKey fKey = MainApp.GetDoc().tcFKey1; fKey.FKeySelectedMode = true; if (group > 0 && group <= 12) { groupSelected = group; fKey.FKeyBtnSelected = groupSelected; } }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { fKey.FKeyText(1, tclm.GetString("FormMessages.tcFKey1[1]", "View Active")); fKey.FKeyText(2, tclm.GetString("FormMessages.tcFKey1[2]", "View Logged")); fKey.FKeyText(3, tclm.GetString("FormMessages.tcFKey1[3]", "Show Details")); fKey.FKeyText(5, tclm.GetString("FormMessages.tcFKey1[5]", "Clear Active")); fKey.FKeyText(6, tclm.GetString("FormMessages.tcFKey1[6]", "Clear Logged")); fKey.FKeyText(7, tclm.GetString("FormMessages.tcFKey1[7]", "Save Logged")); fKey.FKeyEnabled(5, false); fKey.FKeyEnabled(6, tcLog4NetView1.Visible); fKey.FKeyEnabled(7, tcLog4NetView1.Visible); }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { // only Admins and Supervisors are admitted to... /* * if (MainApp.GetDoc().tcUserAdmin1.CurrentUserLevel > Beckhoff.App.Security.TcUserLevel.Supervisor) * { * fKey.FKeyEnabled(2, false); * fKey.FKeyEnabled(5, false); * fKey.FKeyEnabled(6, false); * } */ }
public void Open(int frmHeight, Beckhoff.App.TcFKey tcFKey) { point_FKey.X = 3 * MainApp.GetDoc().tcFKey1.FKeyButtonObj(1).Width; point_FKey.Y = frmHeight; direction = 1; endPoint_Y = point_FKey.Y - tcFKey.Height - 0; tcFKey.Location = point_FKey; tcFKey.Visible = true; tcFKey.BringToFront(); wndHeight = frmHeight; fKey = tcFKey; timer1.Enabled = true; }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { fKey.FKeyTextAlign = System.Drawing.ContentAlignment.BottomLeft; fKey.FKeyImageAlign = System.Drawing.ContentAlignment.MiddleCenter; RestoreChannelStatus(); fKey.FKeyText(4, tclm["FormCnc.tcFKey1[4]"]); fKey.FKeyText(5, tclm["FormCnc.tcFKey1[5]"], Image.FromFile(Application.StartupPath + "\\Bitmap\\State\\ChStart.ico")); fKey.FKeyText(6, tclm["FormCnc.tcFKey1[6]"], Image.FromFile(Application.StartupPath + "\\Bitmap\\State\\ChStop.ico")); fKey.FKeyText(7, tclm["FormCnc.tcFKey1[7]"], Image.FromFile(Application.StartupPath + "\\Bitmap\\State\\ChReset.ico")); //fKey.FKeyText(8, tclm["FormCnc.tcFKey1[8]"]); //fKey.FKeyText(9, tclm["FormCnc.tcFKey1[9]"]); //fKey.FKeyText(10, tclm["FormCnc.tcFKey1[10]"]); //fKey.FKeyText(11, tclm["FormCnc.tcFKey1[11]"]); fKey.FKeyText(12, tclm["FormCnc.tcFKey1[12]"]); }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { fKey.FKeySelectedMode = true; int pageNr = (pageNumber - 1) * 20; for (int group = 1; group < 12; group++) { string sIdx = (pageNr + group).ToString(); string tmp = tclm.GetString("FormManual.tcFKey1[" + sIdx + "]", "Group " + sIdx, true); fKey.FKeyText(group, tmp); fKey.FKeyEnabled(group, !tmp.StartsWith(" ")); } if (fKey.FKeySelectedMode) { fKey.FKeyBtnSelected = groupSelected; } }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { fKey.FKeyTextAlign = System.Drawing.ContentAlignment.BottomLeft; fKey.FKeyImageAlign = System.Drawing.ContentAlignment.TopCenter; fKey.FKeyText(11, tclm.GetString("FormMain.tcFKey1[11]", "Exit"), null, System.Drawing.Color.Red); }
/// <summary> /// Displays the user administration dialog. /// </summary> /// <param name="bHideBackground">if set to <c>true</c> [b hide background].</param> /// <param name="bAutoLogOn">if set to <c>true</c> [b auto log on].</param> /// <param name="bLockComputer">if set to <c>true</c> [b lock computer].</param> public void UserAdminDialog(bool bHideBackground, bool bAutoLogOn, bool bLockComputer) { Beckhoff.App.TcFKey fKey = MainApp.GetDoc().tcFKey1; MainApp.GetDoc().tcUserAdmin1.LogOnDialog(bHideBackground, bAutoLogOn, bLockComputer); }
private void FormMain_Activated(object sender, System.EventArgs e) { Beckhoff.App.TcFKey fKey = MainApp.GetDoc().tcFKey1; fKey.FKeySelectedMode = false; }
public override void SetFKeyText(Beckhoff.App.TcFKey fKey) { }