[Gtk-sharp-list] TreeView.SetCursor without scrolling

Pedro Castro noup at users.sourceforge.net
Mon Nov 20 07:54:46 EST 2006


The reason why i can't use SelectIter nor SelectPath is because they
don't change the input focus, like SetCursor does. Example: select the
first row (with the mouse), attach a handler to some signal that uses
SelectIter to select the 10th row, and then press "down". The 2nd row
gets selected, not the 11th.

> Try SelectIter (TreeIter) on the TreeView's Selection property.  I've
> attached a small example to show you how its used.
> -Brad

Pedro Castro

More information about the Gtk-sharp-list mailing list