Re: ScrolledWindow without Scrollbars



>On Tue, 2005-04-05 at 19:34 -0400, Andrew Krause wrote:
>> Hello,
>> 
>> 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
>
>Maybe you can get access to the scrollbars, and call hide() on them.

nope, its much more complex than that. i raised this issue on the
gtk-list a couple of years ago. neither havoc, owen or any other gtk
developers seemed to agree that NEVER/NEVER made any sense. i had to
use a hacked version of gtkscrolledwindow in my code that changes the
way size requisitions are made for scrolled windows without
scrollbars. 

i don't believe that simply hiding them will work - the scrolledwindow
code makes quite a lot of assumptions about sizing/presence of these
widgets. 

--p



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