another thing that just occured to me (i am not even suppose to be awake
at this hour) is a gtkalignment.
$widget->set_size_request(200,200);
$align = new GtkAlignment(0.5,0.5,0,0);
$align->add($widget);
somethingelse add or pack_start($align);
- bob
bob majdak jr wrote:
> [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