PHP-GTK
Saturday, October 25, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkHButtonBox
GtkHButtonBox::get_layout_defaultnext

Last updated: Sun, 12 May 2013
view this page in English

GtkHButtonBox Constructor

A new GtkHButtonBox is created as in the following example. Adding buttons is also shown.

//Creating a GtkHButtonBox
     $hbbox = new GtkHButtonBox();
     //Selecting a layout for the button box. Try other
     //GtkButtonBoxStyle options to see the diference  
     $hbbox->set_layout(Gtk::BUTTONBOX_SPREAD);
     //Setting the spacing
     $hbbox->set_spacing(25);
 
     //Creating buttons to add
     $button1 = new GtkButton('Button 1');
     $button2 = new GtkButton('Button 2');
 
     //Adding the buttons to the GtkHButtonBox
     $hbbox->add($button1);
     $hbbox->add($button2);

Note that there are no parameters in the constructor. Also, as with all container widgets, GtkHButtonBox takes up no space until its child widgets are in place.


User Contributed Notes
gtk.gtkhbuttonbox.constructor.php
add a note about notes
There are no user contributed notes for this page.


previousGtkHButtonBox
GtkHButtonBox::get_layout_defaultnext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:57 2013 CEST