Re: Child Packing
| From: | Richard Lynch | Date: | Thu, 06 Jan 2005 21:30:41 +0000 |
| Subject: | Re: Child Packing | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5408@lists.php.net to get a copy of this message | ||
> $cd_type_main_box = &new GtkVBox(false, 0);
> $cd_type_main_box->set_usize(100,-1);
> $hb = &new gtkhbox(0,0);
> $hb->pack_start($cd_type_main_box,0,0,10);
> $cd_type_window->add($hb);
So what do you do when...
On Screen B, so far, all you have is the "Back" button.
Later, you'll add more stuff, but you're not sure what it is right now,
much less exactly where it will fit.
But the Back button belongs in the bottom-left corner.
So you use an HBox and pack_start and a VBox and pack_end and tweak the
expand/fill settings to get the damn thing in the bottom-left corner where
it belongs.
But you know, without a doubt, that you'll have to rip that out and change
it and it will mess up the layout as soon as you want to add anything else
in.
I've got to be doing something fundamentally wrong here...
I guess I'm hoping somebody can point me to a function/object/method that
means:
"Keep this button 10, -50 from the bottom left corner of the window, no
matter what size the window is, and no matter what else is added to it."
--
Like Music?
http://l-i-e.com/artists.htm