internal override void CompleteCommandListEntry(CommandList.Entry entry) { entry.PossibleCommandsLower = new[] { Strings.Item("Script_CommandPart_Dec") + " " + Strings.Item("Script_CommandPart_" + m_Code), Strings.Item("Script_CommandPart_Inc") + " " + Strings.Item("Script_CommandPart_" + m_Code) }; entry.PossibleCommandsLower[0] = entry.PossibleCommandsLower[0].ToLower(); // just in case! entry.PossibleCommandsLower[1] = entry.PossibleCommandsLower[1].ToLower(); entry.CustomData = new[] { -1, +1 }; }
internal override void CompleteCommandListEntry(CommandList.Entry entry) { // the commands need to be assigned to different folders in frmAddCommand base.CompleteCommandListEntry(entry); int[] combinations = (int[])CommandListEntry.CustomData; entry.AddGUIPath = new string[combinations.Count()]; for (int index = 0; index < combinations.Length; index++) { Combinations combination = (Combinations)combinations[index]; switch (combination) { case Combinations.OK: case Combinations.CANCEL: case Combinations.NEXTAREA: case Combinations.PREVAREA: case Combinations.SELECT: case Combinations.ENDL: case Combinations.HOME: entry.AddGUIPath[index] = "Dialog"; break; case Combinations.KEYUP: case Combinations.KEYDOWN: case Combinations.KEYLEFT: case Combinations.KEYRIGHT: case Combinations.SHOWMENU: case Combinations.SHOWCTRMENU: case Combinations.SHOWMENUBAR: case Combinations.ESC: entry.AddGUIPath[index] = "Menu"; break; case Combinations.SELECT_PREV: case Combinations.SEL_NEXT: case Combinations.MAX: case Combinations.MIN: case Combinations.RESTORE: case Combinations.CLOSE: entry.AddGUIPath[index] = "Window"; break; //case Combinations.SHON: //case Combinations.SHOFF: //case Combinations.KEYPGUP: //case Combinations.KEYPGDN: default: entry.AddGUIPath[index] = "Unknown"; break; } } }
internal override void CompleteCommandListEntry(CommandList.Entry entry) { // the commands need to be assigned to different folders in frmAddCommand base.CompleteCommandListEntry(entry); int[] singleParams = (int[])CommandListEntry.CustomData; entry.AddGUIPath = new string[singleParams.Count()]; for (int index = 0; index < singleParams.Length; index++) { int code = singleParams[index] & 0xffff; if (MessageIsScroll((short)code)) { entry.AddGUIPath[index] = "Scroll"; } else { entry.AddGUIPath[index] = "Edit"; } } }
internal override void CompleteCommandListEntry(CommandList.Entry entry) { entry.PossibleCommandsLower = new[] { Strings.Item("Script_CommandPart_Visit") + " " + Strings.Item("SAW_Visit_" + m_Target).ToLower() }; }