public TextEditor(TextDocument doc, ITextEditorOptions options, EditMode initialMode) { //GtkWorkarounds.FixContainerLeak (this); //WidgetFlags |= WidgetFlags.NoWindow; this.textArea = new TextArea(doc, options, initialMode); this.textArea.Initialize(this, doc, options, initialMode); this.textArea.EditorOptionsChanged += (sender, e) => OptionsChanged(sender, e); PackStart(textArea, true, true); //AddTopLevelWidget (textArea, 0, 0); Show(); /*if (Platform.IsMac) { * VScroll += delegate { * for (int i = 1; i < containerChildren.Count; i++) { * containerChildren[i].Child.QueueDraw (); * } * }; * HScroll += delegate { * for (int i = 1; i < containerChildren.Count; i++) { * containerChildren[i].Child.QueueDraw (); * } * }; * }*/ }
public void StartMode () { if (insertionPoints.Count == 0) return; oldMode = editor.CurrentMode; editor.Caret.IsVisible = false; editor.TextViewMargin.AddDrawer (drawer); editor.CurrentMode = this; editor.ScrollTo (insertionPoints [CurIndex].Location); editor.QueueDraw (); ShowHelpWindow (false); editor.SizeAllocated += HandleEditorSizeAllocated; SetHelpWindowPosition (); }
public EditModeChangedEventArgs(EditMode oldMode, EditMode newMode) { this.OldMode = oldMode; this.NewMode = newMode; }
public EditModeChangedEventArgs (EditMode oldMode, EditMode newMode) { this.OldMode = oldMode; this.NewMode = newMode; }
public void StartMode () { oldMode = editor.CurrentMode; editor.Caret.IsVisible = false; editor.TextViewMargin.AddDrawer (drawer); editor.CurrentMode = this; editor.ScrollTo (insertionPoints[CurIndex].Location); editor.QueueDraw (); }