예제 #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);
 }
예제 #6
0
 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)));
 }
예제 #22
0
 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);
        }