Re: fullscreen
| From: | Marco Bonzanini | Date: | Mon, 31 Mar 2003 21:16:46 +0000 |
| Subject: | Re: fullscreen | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3189@lists.php.net to get a copy of this message | ||
> how can I open a window so that it fits all the user screen??
you can use Gdk::screen_width and Gdk::screen_height to get the screen
width/height in pixels, then use the set_default_size() method on your
GtkWindow object:
$window = &new GtkWindow();
$window->set_default_size((Gdk::screen_width() - 10), (Gdk::screen_height() -
30));
ciao ;)
Marco Bonzanini