Re: Menus and resizing

From: Date: Thu, 07 Oct 2004 08:44:12 +0000
Subject: Re: Menus and resizing
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5131@lists.php.net to get a copy of this message
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 --

« previous php.gtk.general (#5131) next »