Re: Scrolled window resizing question.
- From: Bartek Kostrzewa <bartek runbox com>
- Cc: gtkmm-list gnome org
- Subject: Re: Scrolled window resizing question.
- Date: Sat, 08 Oct 2005 23:49:18 +0100
pjdavis engineering uiowa edu wrote:
> Does anyone know how to make a scrolled window stop expanding once the need for
> a scrollbar is gone? I've been playing around with some different things but I
> can't figure this one out.
>
> The goal is to have a scrolled window that will expand while it still needs a
> scrollbar, and then once the scroll bar dissappears, the widget stops expanding
> with further expansion of the containing widget.
put it into a vbox and hbox packing using Gtk::PACK_SHRINK and use
set_size_request to manually set the size according to your
requirements... I just tried that out and it works quite well although
you should avoid packing anything else into the vbox.
Also, there are the methods get_vscrollbar_visible and
get_hscrollbar_visible which you can check and invoke set_size_request
as required
This will require some tricksing with the other widgets around your
scrolled window however (and your vboxes and hboxes) because they'll
most probably behave rather strangely...
>
> Thanks,
> Paul Davis
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]