Re: question about Gtk::Layout and Gtk::ScrolledWindow
- From: Vladislav Grinchenko <3rdshift comcast net>
- To: Antonio Coralles <noche suapie reflex at>
- Cc: Gtkmm list <gtkmm-list gnome org>
- Subject: Re: question about Gtk::Layout and Gtk::ScrolledWindow
- Date: Tue, 02 Nov 2004 23:44:58 -0500
Antonio,
I faced similar problems with a label in a scrolled window.
The way I solved it was to remember the size of the enclosing
container when it changes and then when enclosing child tries to
change its size, restrain it from growing too much.
Search for size_allocate_cb() and answer_box_size_allocate_cb()
in DeckPlayer.cpp:
http://cvs.sourceforge.net/viewcvs.py/granule/granule/src/DeckPlayer.cpp?rev=1.50&view=auto
hope this helps,
-Vlad
On Tue, 2004-11-02 at 09:49, Antonio Coralles wrote:
> when i add a Gtk::Layout to a Gtk::ScrolledWindow it just works like i
> want, as long as the parrent window is smaller than the size of my
> layout. but when it get's bigger, the layout is expanded in size, which
> is particullary not what i want .... so i would like to know if there is
> a way to prevent a layout inside a scrolled window from expanding after
> the the area inside the scrolled window matches a particular size.
> maybe someone can help me,
> antonio
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
--
_____________________________________________________________
Vladislav Grinchenko http://home.comcast.net/~3rdshift/
e-mail: 3rdshift comcast net
Focus on quality, and productivity will follow.
_____________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]