Re: Scrolled window resizing question.
- From: Bartek Kostrzewa <bartek runbox com>
- To: gtkmm-list gnome org
- Subject: Re: Scrolled window resizing question.
- Date: Sat, 08 Oct 2005 12:32:01 +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.
>
> Thanks,
> Paul Davis
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
from scrolledwindow.h:
void set_policy(PolicyType hscrollbar_policy, PolicyType
vscrollbar_policy);
from enums.h:
enum PolicyType
{
POLICY_ALWAYS,
POLICY_AUTOMATIC,
POLICY_NEVER
};
hence:
MyScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]