상속: System.EventArgs
예제 #1
0
#pragma warning disable 612, 618
		private void TextSnippetDocumentChange(object sender, NativeScintillaEventArgs e)
		{
			////	If for any reason the window DOES manage to hide itself
			////	we merely reshow it.
			if (!this.txtSnippet.AutoComplete.IsActive && Visible)
			{
				int pos = this.Scintilla.Caret.Position;
				this.Scintilla.Caret.Goto(0);
				this.txtSnippet.AutoComplete.Show(0, this._snippetList);
				this.Scintilla.Caret.Goto(pos);
			}
		}
예제 #2
0
		/// <summary>
		/// Check if cursor is on a brace or not, highlighting if necessary
		/// </summary>
#pragma warning disable 612, 618
		private void ScintillaNativeInterfaceUpdateUi(object sender, NativeScintillaEventArgs e)
		{
			var scintilla = (Scintilla.Scintilla)sender;
			int pos = scintilla.CurrentPos;
			if (this.IsBrace(pos) || this.IsBrace(--pos))
			{
				int match = scintilla.NativeInterface.BraceMatch(pos, 0);
				if (match != -1)
					scintilla.NativeInterface.BraceHighlight(pos, match);
				else
					scintilla.NativeInterface.BraceBadLight(pos);
			}
			else
				scintilla.NativeInterface.BraceHighlight(-1, -1);
			Editor.StatusBar.Items[2].Text =
				String.Format("Current Position: {0}", this._scintilla.CurrentPos);
		}
#pragma warning disable 612, 618
		/// <summary>
		///     Initializes a new instance of the MacroRecordEventArgs class.
		/// </summary>
		/// <param name="ea">NativeScintillaEventArgs object containing the message data</param>
		public MacroRecordEventArgs(NativeScintillaEventArgs ea)
		{
			this._recordedMessage = ea.Msg;
			this._recordedMessage.LParam = ea.SCNotification.lParam;
			this._recordedMessage.WParam = ea.SCNotification.wParam;
		}