RE: [PHP-GTK] Menus and resizing
| From: | Miley, Shain | Date: | Fri, 08 Oct 2004 19:29:41 +0000 |
| Subject: | RE: [PHP-GTK] Menus and resizing | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-5139@lists.php.net to get a copy of this message | ||
Thanks allot to everyone who replayed. I was able to get the desired results using the code below.
Thanks again.
Shain
-----Original Message-----
From: Malk0 [mailto:malk0.phpgtk@gmail.com]
Sent: Thursday, October 07, 2004 4:44 AM
To: Miley, Shain
Cc: php-gtk-general@lists.php.net
Subject: Re: [PHP-GTK] Menus and resizing
hi,
which method fo you use to add your menu in a container.
by using the gtkbox::pack_start() merthod you can specify how the
widget will react to the resize query.
for example:
$box = &new gtkvbox();
$window = &new gtkwindow();
$menu = &new gtkmenubar();
$box->pack_start($gtkmenubar,0,0,2);
$window->add($box);
I hope this will help you, you can find more info here :
http://gtk.php.net/manual/fr/gtk.gtkbox.method.pack_start.php
best regards nathan
On Tue, 5 Oct 2004 11:42:09 -0400, Miley, Shain <smiley@czn.com> wrote:
> Hello,
> I new to Gtk and I am building an app that has a typical 'File', 'Edit' ,
> etc menu at the top. What I am looking to do is either:
>
> a) allow the user to resize the app but require that certain parts (the menu) does not get any
> wider
>
> or
>
> b) not allow resizing..which I tried..however the menu and widgets look like they override the
> line:
>
> $window->set_default_size( 300, 20);
>
> when I try to use 'set_policy'.
>
> I have tried several different comminations for 'set_policy' and none seem to allow
> set_default_size to work correctly unless I allow resizing.
>
> $window->set_policy(0, 1, 0);
>
> Is there a way for me to accomplish what I am asking for?
>
> Thanks in advance,
>
> Shain
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
-- Malk0 --