コード例 #1
0
 public MacroRecordEventArgs(NativeScintillaEventArgs ea)
 {
     _recordedMessage        = ea.Msg;
     _recordedMessage.LParam = ea.SCNotification.lParam;
     _recordedMessage.WParam = ea.SCNotification.wParam;
     // QuickSharp
     _notification = ea.SCNotification;
 }
コード例 #2
0
 internal AutoCompleteAcceptedEventArgs(SCNotification eventSource)
 {
     _wordStartPosition = (int)eventSource.lParam;
     _text = Utilities.MarshalStr(eventSource.text);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the NativeScintillaEventArgs class.
 /// </summary>
 /// <param name="msg">Notification Message sent from the native Scintilla</param>
 /// <param name="notification">SCNotification structure sent from Scintilla that contains the event data</param>
 public NativeScintillaEventArgs(Message msg, SCNotification notification)
 {
     _msg          = msg;
     _notification = notification;
 }
コード例 #4
0
ファイル: Scintilla.cs プロジェクト: rudybear/moai-ide
        internal void FireMarginClick(SCNotification n)
        {
            Margin m = Margins[n.margin];
            Keys k = Keys.None;

            if ((n.modifiers & (int)KeyMod.Alt) == (int)KeyMod.Alt)
                k |= Keys.Alt;

            if ((n.modifiers & (int)KeyMod.Ctrl) == (int)KeyMod.Ctrl)
                k |= Keys.Control;

            if ((n.modifiers & (int)KeyMod.Shift) == (int)KeyMod.Shift)
                k |= Keys.Shift;

            OnMarginClick(new MarginClickEventArgs(k, n.position, Lines.FromPosition(n.position), m, m.AutoToggleMarkerNumber, m.IsFoldMargin));
        }
コード例 #5
0
ファイル: EventArgs.cs プロジェクト: revam/Gemini
 /// <summary>
 /// Initializes a new instance of the NativeScintillaEventArgs class.
 /// </summary>
 /// <param name="msg">Notification Message sent from the native Scintilla</param>
 /// <param name="notification">SCNotification structure sent from Scintilla that contains the event data</param>
 public NativeScintillaEventArgs(Message msg, SCNotification notification)
 {
     _msg			= msg;
     _notification	= notification;
 }
コード例 #6
0
ファイル: EventArgs.cs プロジェクト: revam/Gemini
 internal AutoCompleteAcceptedEventArgs(SCNotification eventSource, Encoding encoding)
 {
     _wordStartPosition = (int)eventSource.lParam;
     _text = Utilities.IntPtrToString(encoding, eventSource.text, eventSource.length);
 }
コード例 #7
0
 internal AutoCompleteAcceptedEventArgs(SCNotification eventSource, Encoding encoding)
 {
     _wordStartPosition = (int)eventSource.lParam;
     _text = Utilities.IntPtrToString(encoding, eventSource.text, eventSource.length);
 }
コード例 #8
0
ファイル: EventArgs.cs プロジェクト: erisonliang/qizmt
		internal AutoCompleteAcceptedEventArgs(SCNotification eventSource)
		{
			_wordStartPosition = (int)eventSource.lParam;
			_text = Utilities.MarshalStr(eventSource.text);
		}
コード例 #9
0
 internal UserListItemSelected(SCNotification eventSource)
 {
     _listType = (int)eventSource.wParam;
     _text     = Utilities.MarshalStr(eventSource.text);
 }