Re: Child Packing

From: Date: Wed, 05 Jan 2005 13:36:11 +0000
Subject: Re: Child Packing
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5399@lists.php.net to get a copy of this message
Richard Lynch wrote:
I've got to be doing something fundamentally wrong here, but reading docs and looking at examples and even running them doesn't seem to help. Can anybody point me to a reference for a good clean way to make things look like I want? Or tell me where I'm going wrong?
I have yet to see a tutorial that tells anyone how to pack widgets correctly. Everyone just throws them into a container and doesn't worry too much about layout. Take a look at the pack_start() manual page. http://gtk.php.net/manual/en/gtk.gtkbox.method.pack_start.php By default, if you pack a widget it will expand to fill up all the space available to it in the container. There are three other parameters to pack_start() besides the widget that you are packing. Setting those three parameters properly will allow you to control the size of your widgets much more easily. -- Scott Mattocks scott@crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks

« previous php.gtk.general (#5399) next »