RE: Auto-scrolling the scrollbar on a TreeView
- From: <j g karssenberg student utwente nl>
- To: <hoelz wisc edu>, <gtk-app-devel-list gnome org>, <gtk-perl-list gnome org>
- Subject: RE: Auto-scrolling the scrollbar on a TreeView
- Date: Wed, 3 Oct 2007 10:43:27 +0200
The behavior you want should happen automatically - works for me. Certain widgets, like the TreeView and the
TextView understand if they are nested within a scrolled window and scroll automatically when needed.
Probably there is something wrong with the way you set up the scrolled window and the treeview together.
The link you give does not work, so I can not check your code.
From: gtk-perl-list-bounces gnome org on behalf of Rob Hoelz
Sent: Wed 10/3/2007 1:29 AM
To: gtk-app-devel-list gnome org; gtk-perl-list gnome org
Subject: Auto-scrolling the scrollbar on a TreeView
I'm currently using a Gtk2 TreeView within a Gtk2 ScrolledWindow, and
I'd like to be able to navigate the tree using the keyboard. I've set
up key bindings so Right expands a tree, Left collapses it, and Up and
Down seem to be already set to navigate expanded cells. However, when
I use Down to navigate to a cell off-screen, I'd like the
ScrolledWindow to compensate. I've tried scroll_to_cell, but to no
avail. Any hints? I've posted the source code at
http://cs.wisc.edu/~hoelz/TodoList.pl; the problem is in the callback
at line 157.
gtk-perl-list mailing list
gtk-perl-list gnome org
] [Thread Prev