RE: Auto-scrolling the scrollbar on a TreeView



Hi,
 
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.
 
Regards,
 
Jaap

________________________________

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



Hello everyone,

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.

Thanks,
Rob Hoelz
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]