//////////////////////// Auto-Subscribed Event Handlers ////////////////////////// /// <summary> /// Responds to any change in cursor position in a TextView. /// </summary> protected virtual void TextView_OnMoveCursor(object o, Gtk.MoveCursorArgs args) { // Update the cursor position (line,Col) on the statusbar: UpdCursorLocation(((TextView)o).Buffer); }
protected virtual void OnTreeview1MoveCursor(object o, Gtk.MoveCursorArgs args) { //args. }
void HandleMoveCursor (object o, MoveCursorArgs args) { int cp = textview1.Buffer.CursorPosition; var textIter = textview1.Buffer.GetIterAtOffset (cp); var node = unit.GetNodeAt (textIter.Line + 1, textIter.LineOffset + 1); if (node == null) return; TreeIter iter; if (!iterDict.TryGetValue (node, out iter)) return; this.treeviewNodes.Selection.Changed -= SelectionChanged; treeviewNodes.Selection.SelectIter (iter); treeviewNodes.ScrollToCell (store.GetPath (iter), null, true, 0, 0); this.treeviewNodes.Selection.Changed += SelectionChanged; }
protected void OnLabelModificarProductoMoveCursor(object o, MoveCursorArgs args) { this.CargarProductos(); }