[Mono-list] Get scroolbar to follow last item in treeview.

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Jun 13 19:42:28 EDT 2009


On Fri, Jun 12, 2009 at 7:40 PM, Doru<ce_doru at yahoo.com> wrote:
>
> Hi there!
>
>     I have a treeview and as a treemodel i have a lisstore with one column.
> I am adding rows to this treeview and i want the vertical scroolbar to
> follow as i add a row. Specifically i want the last row to always be
> visible.
>     Can someone give me an idea how to do this? Thanks!

I think doing something like
tree.Vadjustment.Value = tree.Vadjustment.Upper;
every time you want to be be sure it's scrolled to the end, would work.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-list mailing list