[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: "Virtual" Scrolling?
- From: J Douglas Winters <winters cs utah edu>
- To: gtk-app-devel-list redhat com
- Subject: Re: "Virtual" Scrolling?
- Date: Fri, 6 Nov 1998 22:26:44 -0700 (MST)
If I understand correctly what you want, you might want to look into
GtkAdjustment and [hv]scrollbars. Just add a vertical and horizontal
scrollbars to a container, with the drawing area in the middle. I believe
the tutorial has sufficient info on how to use an adjustments w/
scrollbars. If not, I struggled through most of it before the tutorial
had anything, so send and email and I may be able to help.
Good luck.
--Doug
===========================================
J Douglas Winters | winters@cs.utah.edu
===========================================
On Sat, 7 Nov 1998, SEGV wrote:
> Is there an example somewhere I can look at of "virtual" scrolling? By that I
> mean, instead of just putting a bigger widget in a smaller scrolling container,
> actually drawing a scrolling container sized image myself based on the scroll
> position.
>
> That is, I want to have a pixmap the size of a scrolled window, which is drawn
> to according to the scroll position, then copied into the scrolled window,
> giving the impression of a much larger image.
>
> I have everything working, except I can't see how to get the scroll position. In
> fact, while I'm at it, I'd like to see how to programmatically set it also.
>
> >From what I can figure out, my drawing area is in a viewport which is in a
> scrolled window. The scrolled window and viewport have adjustments associated
> with them, which do things when changed. I assume the default setup is to scroll
> the drawing area when changed.
>
> Is that correct? What should I be reading, the viewport's adjustments, or the
> scrolled windows? I changed the adjustments programmatically but that did
> nothing.
>
> Thanks.
>
> --
> SEGV http://www.cgocable.net/~mlepage/
>
>
> --
> To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
> Mailing list concerns should be mailed to <listmaster@redhat.com>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]