Re: ScrolledWindow - how to allow scrolling only in one direction?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Davis schrieb:
> You can inherit from Gtk::ScrolledWindow and override its
> on_size_request function.
> 
> [code]
> 
> I based this on the example here:
> http://svn.gnome.org/viewcvs/gtkmm/trunk/examples/book/custom/custom_container/
> 

Thanks very much, the code is indeed working. There's only one point
where VScrolledWindow does not behave as expected: When the wrapped
widget changes it's size (e.g. becaus the wrapped wigdet is a vbox and a
larger button is added), this change is not reflected by the
VScrolledWindow. I looked through the example (though I didn't build it)
and I could not find code that would do this. What is to be added to
make this work as well?
- --
- -ness-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGEULbvD/ijq9JWhsRAgHcAJ9JAfUdlIHIZkbDRAvF1SNBOkr/9QCfel/C
31ALP/AkGgWbGZmW/hRZ/GA=
=BV9T
-----END PGP SIGNATURE-----



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