Resizable Not Working?
| From: | Ron Tarrant | Date: | Tue, 14 Feb 2006 23:59:34 +0000 |
| Subject: | Resizable Not Working? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6735@lists.php.net to get a copy of this message | ||
Hi all,
I don't know if this is a bug or not, but in the following code, the depricated method /set_policy()/ allows a window to be shrunk whereas /set_resizable()/ (the replacement method) does not:
<?php
$window = new GtkWindow();
// settings
$window->set_resizable(true);
$window->set_policy(true, true, false);
$window->set_size_request(800, 600);
// connections
$window->connect_simple("destroy", array("gtk", "main_quit"));
// launch
$window->show_all();
gtk::main();
?>
Is there any other way to allow shrinking of a window down past its initial size?
-Ron T.
--
Ron Tarrant
Blog:<A HREF="http://www.writingup.com/blog/phpgtk2">PHP-Gtk2</A>