<?php
dl("php_gtk." . (strstr(PHP_OS, "WIN") ? "dll" :
"so"));
$window = &new GtkWindow();
$window->set_position(GTK_WIN_POS_CENTER);
$window->connect_object("destroy", array("gtk",
"main_quit"));
$table = &new GtkTable();
$table->set_row_spacings(5);
$table->set_col_spacings(5);
$window->add($table);
$text = &new GtkText();
$table->attach($text, 1, 4, 1, 3);
$label = &new GtkLabel('Expand this window to see the difference between
the GtkAttachOptions settings.');
$table->attach($label, 1, 4, 4, 5, GTK_SHRINK, GTK_SHRINK);
$button = &new GtkButton('Button ');
$table->attach($button, 4, 6, 3, 4, GTK_SHRINK, GTK_SHRINK, 3, 3);
$button = &new GtkButton('Button 2 ');
$table->attach($button, 4, 6, 4, 5, GTK_FILL, GTK_FILL, 3, 3);
$button = &new GtkButton('Button 3 ');
$table->attach($button, 4, 6, 5, 6, GTK_FILL|GTK_EXPAND,
GTK_FILL|GTK_EXPAND, 3, 3);
$window->show_all();
gtk::main();
?>
|