[Gtk-sharp-list] Overriding Key events in NodeView
Piotr Zurek
p.zurek at gmail.com
Wed Aug 2 17:17:46 EDT 2006
Hi guys,
In the NodeView, with an editable column, pressing "Enter" causes the
active cell to enter the editing mode. The same thing happens, when the
"Space" is pressed. How can I override those events to get them to do
something else?
The method below doesn't even display the "key" for "Enter" or "Space".
void outlineView_KeyPressEvent (object o, KeyPressEventArgs args)
{
string key = args.Event.Key.ToString();
Console.WriteLine(key);
}
And one more quick question. How to get a reference to an
expanded/collapsed TreeNode in the NodeView? The Gtk.RowCollapsedArgs
returns reference to TreeIter or TreePath. How do I get those to point
me to a TreeNode?
Cheers
Piotr
More information about the Gtk-sharp-list
mailing list