GtkFrame y-alignment
| From: | Steph | Date: | Thu, 05 Jul 2001 15:10:06 +0000 |
| Subject: | GtkFrame y-alignment | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-2049@lists.php.net to get a copy of this message | ||
Hi all,
Could someone out there run this on a nix box & say where the title shows up, please?
The y-align parameter makes no difference in win32. -
Cheers,
Steph
<?
dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')) ||
die("Can't load php_gtk module!\n");
$window = &new GtkWindow();
$window->set_title("testbay window");
$window->set_position(GTK_WIN_POS_CENTER);
$window->set_default_size((gdk::screen_width()-10), (gdk::screen_height()-20));
$window->connect_object('destroy', array('gtk', 'main_quit'));
$frame = &new GtkFrame('Frame Name');
$frame->set_label_align(0.0, 0.5);
$window->add($frame);
$frame->show();
$window->show_all();
Gtk::main();
?>