Re: Scrollbars and multiple viewports.



>It seems to be a problem to connect to different viewports to the same
>scrollbars adjustment. It seems that the adjustment just wants one
>viewport each. Does anyone know how to construct something like this, or
>just how to connect two viewports to the same scrollbar.
>
>I'm new to this, please keep it simple if possible.

I am doing this in my current project. Its pretty easy. Use 2 scrolled
windows (i.e. not just viewports). Set the adjustment of one to the
adjustment of the other. Turn off scrollbars
(gtk_scrolled_window_set_policy) for the one of them. Turn on
scrollbars for the other. Presto.

--p




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