[prev in list] [next in list] [prev in thread] [next in thread]
List: php-gtk-general
Subject: RE: [PHP-GTK] Menus and resizing
From: "Miley, Shain" <SMiley () czn ! com>
Date: 2004-10-08 19:29:41
Message-ID: E73B46B173198A4DAC67F6EFB88202319E193A () nyjthrs2ke2k01 ! corp ! pvt
[Download RAW message or body]
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 --
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic