Re: Big Buttons [PHP-GTK]

From: Date: Thu, 08 Mar 2001 15:35:35 +0000
Subject: Re: Big Buttons [PHP-GTK]
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-572@lists.php.net to get a copy of this message
On Thu, Mar 08, 2001 at 03:16:10PM +0000, Nathan wrote: > two things, I've had a play with GTK and can't figure out how to put two > buttons on the app. I can only get one button that fill the window. I > compared it to the example code and it appears the same, what am I doing wrong? are you packing the buttons into a box or table ? to get 2 buttons in an app using a box try this : $window = &new GtkWindow(); $box = &new GtkVBox(); $button1 = &new GtkButton("Button 1"); $button2 = &new GtkButton("Button 2"); $box->pack_start($button1); $box->pack_start($button2); $window->add($box); $window->show_all(); Gtk::main(); this will create a vertical box packed with 2 buttons. for more info on box packing, check the Gtk tutorial at http://www.gtk.org/tutorial HTH Barry > > Thankyou all. > > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- http://www.theshining.org

« previous php.gtk (#572) next »