Re: SimpleList scroll to end
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: SimpleList scroll to end
- Date: Sat, 6 Jan 2007 18:30:50 +0100
* zentara <zentara1 sbcglobal net> [2007-01-06 17:55]:
I wanted to add a SimpleList to a ScrolledWindow, then auto
scroll to the end.
What is the best way to force the scrollbar to the end? I have
a bad hack that works below, but I'm sure I'm overlooking
something. :-)
Youâll have to experiment some, I think, as I canât glean the
answer from the docs. Basically tho I see two options: if the
TreeView automatically modifies the `lower`/`upper` properties
of the Adjustment objects itâs associated with, then you can use
the `value-changed` signal of the `vadjustment` property object
of the TreeView to change the Adjustmentâs `value` property to
the maximum given in `upper`. Otherwise, youâll have to see what
the default values for `lower`/`upper` are and change the `value`
property from the ListStoreâs `row-inserted`/`row-deleted`
signals. Or some such.
It is really pretty obvious if you keep in mind how Gtk2 is
architected.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]