Re: Child Packing
| From: | Jeremy Johnstone | Date: | Fri, 07 Jan 2005 01:17:30 +0000 |
| Subject: | Re: Child Packing | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5410@lists.php.net to get a copy of this message | ||
Check out Glade. It will make your life a lot easier when you need to
add new stuff.
-Jeremy
On Thu, 6 Jan 2005 13:30:41 -0800 (PST), Richard Lynch <ceo@l-i-e.com> wrote:
> > $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
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
---------------------------
Jeremy Johnstone
http://www.jeremyjohnstone.com
jsjohnst@php.net