Scrolling Problems with a Floating Widget



Hi,

In my application, I want to have a setup so that I have a GtkScrollable
widget with scrollbars. However the issue is that I want to have a
normal GtkWidget above it, that doesn't move when I scroll (or 'floats').

For example
http://whyareyoureadingthisurl.files.wordpress.com/2011/02/example.png

I can achieve this by having a GtkVBox, containing my 'floating widget'
and a GtkScrolledWindow, within which there is the GtkScrollable widget.
However the issue with this is that the scrollbars don't cover the area
ofd the floating widget, so it seems as though they are 'disconnected'
in some way.

Like this
http://whyareyoureadingthisurl.files.wordpress.com/2011/02/asitis.png

So I gathered that I had to use my own GtkHScrollbar and GtkVScrollbar,
like so
http://whyareyoureadingthisurl.files.wordpress.com/2011/02/layout.png

However I cannot get this working in GTK3. Can someone point me to an
example, or simply explain the different components in how this can be
achieved, so I can try to get it working?

Thanks

-- 
Andrew


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