« Return to Thread: Aligning a fixed size panel

Re: Aligning a fixed size panel

by bob majdak jr :: Rate this Message:

Reply to Author | View in Thread

[forwarding it to the list this time. grr at incorrect reply-to headers.]

you would probably want an hbox in a vbox in the window. off the top of
my head i think that would produce the requested result.

        $widget->set_size_request(200,200);
        $hbox->pack_start($widget,true,false,0);
        $vbox->pack_start($hbox,true,false,0);
        $window->add($vbox);

pack_start and pack_end work like so

        pack_start(
                the widget to pack,
                boolean of to take up all available area. "fill".
                boolean of if to stretch contents to fill it. "expand".
                number of pixels to padd between widgets.
        );

- bob.


Adz07 wrote:
> How do i create a frame 200x200 and make it stay centered in the app so even
> if the window is resized the frame stays 200x200 and stays in the center??
> All the Vbox and Hbox stuff is confusing me

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: Aligning a fixed size panel