Ejemplo n.º 1
0
 public static void SetCommand(int index, string commandName, NppFuncItemDelegate functionPointer, ShortcutKey shortcut)
 {
     SetCommand(index, commandName, functionPointer, shortcut, false);
 }
Ejemplo n.º 2
0
        public static void SetCommand(int index, string commandName, NppFuncItemDelegate functionPointer, ShortcutKey shortcut, bool checkOnInit)
        {
            FuncItem funcItem = new FuncItem
            {
                _cmdID    = index,
                _itemName = commandName
            };

            if (functionPointer != null)
            {
                funcItem._pFunc = new NppFuncItemDelegate(functionPointer);
            }
            if (shortcut._key != 0)
            {
                funcItem._pShKey = shortcut;
            }
            funcItem._init2Check = checkOnInit;
            _funcItems.Add(funcItem);
        }
Ejemplo n.º 3
0
 public static extern bool SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, ref ShortcutKey lParam);