GtkHPaned Constructor

GtkHPaned (void);

The GtkHPaned widget should be thought of in terms of an arrangement of two child widgets, rather than as an object in its own right. The construct

$hpaned = &new GtkHPaned();
needs to be within a containing GtkWindow and to contain two child widgets of its own in order to work.

Ejemplo 17. Constructing a GtkHPaned widget

<?php

$window = &new GtkWindow();
$window->set_title("GtkHPaned");
$window->connect_object("destroy", array("gtk", 
"main_quit"));

$hpaned = &new GtkHPaned();
$window->add($hpaned);
$hpaned->show();

$button = &new GtkButton("Widget child1");
$hpaned->pack1($button, false, false);
$button->show();

$label = &new GtkLabel();
$label->set_text("Widget child2");
$hpaned->pack2($label, true, true);
$label->show();

$window->show_all();

gtk::main();

?>
Note that setting the resize parameter when packing GtkHPaned child widgets will not prevent them from resizing vertically when the top-level window is maximised.