On Tue, 2005-04-05 at 19:34 -0400, Andrew Krause wrote: > I have a Gtk::Label that is a very long string in the vertical > direction. I want it to scroll down as the user scrolls a different > window. I can do this in a ScrolledWindow with a vertical policy of > Gtk::POLICY_AUTOMATIC, but when I set it to Gtk::POLICY_NEVER, the > window is automatically resized to the label, which is many times the > height of my screen. > > Is there a way to have the scrolling functionalities that I need while > being able to hide the scrollbars? Thanks - Andrew I needed the same thing for a program I'm working on. I solved it by subclassing ScrolledWindow and overriding on_size_request() - see http://cvs.sourceforge.net/viewcvs.py/dinoseq/dino/src/evilscrolledwindow.hpp?view=markup There are a few bugs, for example the child doesn't seem to draw anything outside the initially visible area until after you resize the ScrolledWindow for the first time, but it might be a good starting point. If you find a way to do it without this bug, please let me know. -- Lars Luthman PGP key: http://www.d.kth.se/~d00-llu/pgp_key.php Fingerprint: FCA7 C790 19B9 322D EB7A E1B3 4371 4650 04C7 7E2E
Attachment:
signature.asc
Description: This is a digitally signed message part