Re: Scrolled window resizing question.



Paul Davis wrote:
> Bartek Kostrzewa wrote:
> 
>> 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);
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> gtkmm-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>>  
>>
> Silly goose.
> 
> I understand the concept of setting the scrollbar policy.

oops, sorry about that!



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