Re: ScrolledWindow without Scrollbars
- From: Murray Cumming <murrayc murrayc com>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: Andrew Krause <ajk265 psu edu>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: ScrolledWindow without Scrollbars
- Date: Thu, 07 Apr 2005 10:24:10 +0200
On Wed, 2005-04-06 at 10:08 -0400, Paul Davis wrote:
> >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.
So there should be a bug for this in bugzilla.
> 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
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]