public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, IntPtr wParam, IntPtr lParam);
public int Call(SciMsg msg) { return Call(msg, 0, 0); }
private int Call(SciMsg msg, int wParam, int lParam) { return (int)Win32.SendMessage(_activeScintilla, msg, wParam, lParam); }
private int Call(SciMsg msg) { return Call(msg, 0, 0); }
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);
/// <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))); }
public int SendScintillaMessage(SciMsg msg, int lparam) { return SendScintillaMessage(msg, lparam, 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)); }
/// <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)); }
/// <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); }
public static extern IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, int wParam, int lParam);
/// <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)); }
public int SendScintillaMessage(SciMsg msg) { return SendScintillaMessage(msg, 0); }
public IntPtr Send(SciMsg msg, IntPtr wParam, IntPtr lParam) { return(_directFunction(_directMessagePointer, (uint)msg, wParam, lParam)); }
public int SendScintillaMessage(SciMsg msg, int lparam, int rparam) { return (int)Win32.SendMessage(GetCurrentScintilla(), msg, lparam, rparam); }
public IntPtr Send(SciMsg msg) { return(_directFunction(_directMessagePointer, (uint)msg, IntPtr.Zero, IntPtr.Zero)); }
public IntPtr Send(SciMsg msg) { return _directFunction(_directMessagePointer, (int) msg, IntPtr.Zero, IntPtr.Zero); }
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 int Call(SciMsg msg, int wParam, StringBuilder lParam) { return (int)Win32.SendMessage(_activeScintilla, msg, wParam, lParam); }
private int Call(SciMsg msg, int wParam) { return Call(msg, wParam, 0); }
public int Call(SciMsg msg, int wParam) { return Call(msg, wParam, 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"; }
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); }