示例#1
0
 public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, IntPtr wParam, IntPtr lParam);
示例#2
0
 public int Call(SciMsg msg)
 {
     return Call(msg, 0, 0);
 }
示例#3
0
 private int Call(SciMsg msg, int wParam, int lParam)
 {
     return (int)Win32.SendMessage(_activeScintilla, msg, wParam, lParam);
 }
示例#4
0
 private int Call(SciMsg msg)
 {
     return Call(msg, 0, 0);
 }
示例#5
0
文件: Scintilla.cs 项目: jcaillon/3P
 public IntPtr Send(SciMsg msg, IntPtr wParam, IntPtr lParam)
 {
     return _directFunction(_directMessagePointer, (int) msg, wParam, lParam);
 }
 public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, [MarshalAs(UnmanagedType.LPStr)] StringBuilder lParam);
示例#7
0
 /// <summary>
 /// You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as
 /// <see cref="ScintillaGateway"/> or <see cref="NotepadPPGateway"/>.
 /// If gateways are missing or incomplete, please help extend them and send your code to the project
 /// at https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
 /// </summary>
 public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, int lParam)
 {
     return(SendMessage(hWnd, (UInt32)Msg, new IntPtr(wParam), new IntPtr(lParam)));
 }
示例#8
0
 public int SendScintillaMessage(SciMsg msg, int lparam)
 {
   return SendScintillaMessage(msg, lparam, 0);
 }
示例#9
0
 /// <summary>
 /// You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as
 /// <see cref="ScintillaGateway"/> or <see cref="NotepadPPGateway"/>.
 /// If gateways are missing or incomplete, please help extend them and send your code to the project
 /// at https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
 /// </summary>
 public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, StringBuilder lParam)
 {
     return(SendMessageSci(hWnd, (UInt32)Msg, new IntPtr(wParam), lParam));
 }
示例#10
0
 /// <summary>
 /// You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as
 /// <see cref="ScintillaGateway"/> or <see cref="NotepadPPGateway"/>.
 /// If gateways are missing or incomplete, please help extend them and send your code to the project
 /// at https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
 /// </summary>
 public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, [MarshalAs(UnmanagedType.LPStr)] StringBuilder lParam)
 {
     return(SendMessage(hWnd, (UInt32)Msg, new IntPtr(wParam), lParam));
 }
示例#11
0
 /// <summary>
 /// The key code is a visible or control character or a key from the SCK_* enumeration, which contains:
 /// SCK_ADD, SCK_BACK, SCK_DELETE, SCK_DIVIDE, SCK_DOWN, SCK_END, SCK_ESCAPE, SCK_HOME, SCK_INSERT, SCK_LEFT, SCK_MENU, SCK_NEXT(Page Down), SCK_PRIOR(Page Up),
 /// SCK_RETURN, SCK_RIGHT, SCK_RWIN, SCK_SUBTRACT, SCK_TAB, SCK_UP, and SCK_WIN.
 ///
 /// The modifiers are a combination of zero or more of SCMOD_ALT, SCMOD_CTRL, SCMOD_SHIFT, SCMOD_META, and SCMOD_SUPER.
 /// On OS X, the Command key is mapped to SCMOD_CTRL and the Control key to SCMOD_META.SCMOD_SUPER is only available on GTK+ which is commonly the Windows key.
 /// If you are building a table, you might want to use SCMOD_NORM, which has the value 0, to mean no modifiers.
 /// </summary>
 public KeyModifier(SciMsg SCK_KeyCode, SciMsg SCMOD_modifier)
 {
     value = (int)SCK_KeyCode | ((int)SCMOD_modifier << 16);
 }
示例#12
0
 public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, int lParam);
示例#13
0
 public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, [MarshalAs(UnmanagedType.LPStr)] StringBuilder lParam);
示例#14
0
 public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, IntPtr wParam, IntPtr lParam);
示例#15
0
 /// <summary>
 /// You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as
 /// <see cref="ScintillaGateway"/> or <see cref="NotepadPPGateway"/>.
 /// If gateways are missing or incomplete, please help extend them and send your code to the project
 /// at https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
 /// </summary>
 public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, IntPtr wParam, IntPtr lParam)
 {
     return(SendMessage(hWnd, (UInt32)Msg, wParam, lParam));
 }
示例#16
0
 public int SendScintillaMessage(SciMsg msg)
 {
   return SendScintillaMessage(msg, 0);
 }
示例#17
0
文件: SciApi.cs 项目: massreuy/3P
 public IntPtr Send(SciMsg msg, IntPtr wParam, IntPtr lParam)
 {
     return(_directFunction(_directMessagePointer, (uint)msg, wParam, lParam));
 }
示例#18
0
 public int SendScintillaMessage(SciMsg msg, int lparam, int rparam)
 {
   return (int)Win32.SendMessage(GetCurrentScintilla(), msg, lparam, rparam);
 }
示例#19
0
文件: SciApi.cs 项目: massreuy/3P
 public IntPtr Send(SciMsg msg)
 {
     return(_directFunction(_directMessagePointer, (uint)msg, IntPtr.Zero, IntPtr.Zero));
 }
示例#20
0
文件: Scintilla.cs 项目: jcaillon/3P
 public IntPtr Send(SciMsg msg)
 {
     return _directFunction(_directMessagePointer, (int) msg, IntPtr.Zero, IntPtr.Zero);
 }
示例#21
0
 static public void SetIndicatorStyle(this ScintillaGateway document, int indicator, SciMsg style, Color color)
 {
     document.IndicSetStyle(indicator, (int)style);
     document.IndicSetFore(indicator, new Colour(ColorTranslator.ToWin32(color)));
 }
 public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, int lParam);
示例#23
0
 public int Call(SciMsg msg, int wParam, StringBuilder lParam)
 {
     return (int)Win32.SendMessage(_activeScintilla, msg, wParam, lParam);
 }
示例#24
0
 private int Call(SciMsg msg, int wParam)
 {
     return Call(msg, wParam, 0);
 }
示例#25
0
 public int Call(SciMsg msg, int wParam)
 {
     return Call(msg, wParam, 0);
 }
示例#26
0
 /// <summary>
 /// Determines the EOL mode currently in use, and returns a string containing the EOL sequence.
 /// This would be "\r\n" for windows or "\n" for unix.
 /// </summary>
 private void GetEOL()
 {
     eolMode = (SciMsg)pluginBase.SendScintillaMessage(SciMsg.SCI_GETEOLMODE);
       if (eolMode == SciMsg.SC_EOL_CRLF)
     this.eol = "\r\n";
       else if (eolMode == SciMsg.SC_EOL_CR)
     this.eol = "\n";
       else if (eolMode == SciMsg.SC_EOL_LF)
     this.eol = "\r";
 }
示例#27
0
        static public void SetMarkerStyle(this ScintillaGateway document, int marker, SciMsg style, Color foreColor, Color backColor)
        {
            int mask = document.GetMarginMaskN(1);

            document.MarkerDefine(marker, (int)style);
            document.MarkerSetFore(marker, foreColor.ToColour());
            document.MarkerSetBack(marker, backColor.ToColour());
            document.SetMarginMaskN(1, (1 << marker) | mask);
        }