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) { 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; } }