[Gtk-sharp-list] howto scroll scrolled window when treeview row is not seen

Fredrik Nilsson jymdman at home.se
Sun Jan 8 15:18:19 EST 2006


Hi,

I just implemented this in a program I work on for the moment:

        TreeIter iter = store.AppendValues (new_id, "", String.Format 
("{0:N2}", 0), String.Format ("{0:N2}", 0), "");
        TreePath path = store.GetPath (iter);
        enhetspriser_treeview.ScrollToCell (path, null, true, 0, 0);

the code is cut'n'pasted right from my program, so you have to change it 
to fit your need!

/Fredrik

Xavier de Blas wrote:
> Hello, i have a treeview inside a scrolledwindow both created in glade.
> How do i automatically scroll the scrolled window when a new row is
> added in the treeview and is not seen without manual scrolling?
>
> It's for improving Chronojump usability. ah! Chronojump 0.43 was
> released yesterday!
> http://www.gnome.org/projects/chronojump
>
> Sorry for my english, thanks
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>   



More information about the Gtk-sharp-list mailing list