[Gtk-sharp-list] treeview problems - black border and scrolling while selected row changed

Matej Mihalech matejmihalech at yahoo.com
Tue Apr 10 08:30:01 UTC 2012


I have a simple treeview (like this one - http://www.mono-project.com/GtkSharp_TreeView_Tutorial) filled with 200 items and connected to scrollbar. Everything works, but when I select an item and use arrow keys, selected item can be out of 
visible area. Is it possible to focus on it or set adjustment of 
scrollbar, i.e.
void HandleTreeSelectionChanged (object sender, EventArgs e)
{ vadjustment.Value=SELECTED-ITEM.DISTANCE-FROM-TOP-OF-TREEVIEW;
} 
And one more question: How to paint a black border to table (this 
tree.EnableGridLines = TreeViewGridLines.Both; makes just inside grid).
Thanks in advance.
Matej/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20120410/6faece00/attachment.html>


More information about the Gtk-sharp-list mailing list