[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: how to scroll a gtk_scrolled_window ?
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: how to scroll a gtk_scrolled_window ?
- Date: Sun, 19 Aug 2007 18:23:26 +0200
On Sun, Aug 19, 2007 at 09:32:20PM +0800, Gregory Hosler wrote:
> I have a gtk_scrolled_window() in a window, and occasionally there times when I
> wish to force the window to be at the last line, regardless of where the
> scrollbar is presently set.
>
> In particular, I have widgets below the scrolled_window that hide/show
> themselves as times, and when then show themselves, the scrolled window will
> shrink a little (that's ok), but the scrolling effect is such that the top line
> of the scrolled window remains in place, and the bottom lines are now scrolled
> out of the viewport. When this happens, I want to automatically, scroll down to
> the last line of the view port.
>
> Any idea as to how might I achieve this ?
>
> I have looked at the gtk_scrolled_window page for some methods of controlling
> the viewport position and/or the scrollbar and didn't see anything that looked
> like what I wanted. I also followed up with looking at the scrollbar routines,
> to see if there was anything there, and nothing jumped out at me and looked like
> what i was looking for.
gtk_scrolled_window_get_[hv]adjustment() return the
adjustments. Set them to the desired positions. See the
description of GtkScrolledWindow for how it uses them
(paragraph 5: The position of the scrollbars is
controlled...).
Yeti
--
http://gwyddion.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]