Esempio n. 1
0
//////////////////////// 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);
    }
Esempio n. 2
0
 protected virtual void OnTreeview1MoveCursor(object o, Gtk.MoveCursorArgs args)
 {
     //args.
 }
Esempio n. 3
0
		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;
		}
Esempio n. 4
0
 protected void OnLabelModificarProductoMoveCursor(object o, MoveCursorArgs args)
 {
     this.CargarProductos();
 }