note 57 added to gtk.gtkwindow.method.set_position.php
| From: | taitg at somewhere dot com | Date: | Fri, 12 Oct 2001 05:36:36 +0000 |
| Subject: | note 57 added to gtk.gtkwindow.method.set_position.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-82@lists.php.net to get a copy of this message | ||
Here are the uses for positioning a window:
GTK_WIN_POS_NONE - doesn't affect the window position
GTK_WIN_POS_CENTER - centres $window on screen
GTK_WIN_POS_MOUSE - places $window at current mouse position
<?
$window = &new GtkWindow();
$window->set_policy(false,true,false);
$window->set_name('main_window');
$window->set_title('My Window');
$window->set_position(GTK_WIN_POS_CENTER);
?>
If you want to place the window at a certain location use 'GtkWindow::set_uposition(top,
left);'
--Tait
http://gtk.php.net/manual/en/gtk.gtkwindow.method.set_position.php