private void ZeusScintillaControl_CharAdded(object sender, CharAddedEventArgs e) { this.Cursor_ = (int)Scintilla.Enums.CursorShape.Wait; AutoCompleteHelper.CharAdded(this, e.Ch); this.Cursor_ = (int)Scintilla.Enums.CursorShape.Normal; }
/// <summary> /// If Smart Indenting is enabled, this delegate will be added to the CharAdded multicast event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SmartIndenting_CharAdded(object sender, CharAddedEventArgs e) { if (e.Ch == '\n') { int curLine = this.CurrentPos; curLine = this.LineFromPosition(curLine); int previousIndent = this.LineIndentation(curLine - 1); this.IndentLine(curLine, previousIndent); } }