a small prize to the nix user who returns results of this soonest ...

From: Date: Fri, 14 Dec 2001 00:29:38 +0000
Subject: a small prize to the nix user who returns results of this soonest ...
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-851@lists.php.net to get a copy of this message
Running the following script on win32 provokes an error message if one of the 'grab' lines is uncommented, but not for the other if switched. I have no idea why and just want to know at present, does it do the same on linux? - course, it could be down to my coding ... if so I'd like to know that too, please - <? dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')) || die("Can't load php_gtk module!\n"); function end_stuff($button, $window3) { $window3->destroy(); } $window = &new GtkWindow(); $window->set_title('parent window'); $window->set_position(GTK_WIN_POS_CENTER); $window->set_default_size(200,300); $window->connect_object('destroy', array('gtk', 'main_quit')); $window3 = &new GtkWindow(GTK_WINDOW_DIALOG); $window3->set_title('dialog window'); $window3->realize(); $button = &new GtkButton('test'); /*PLEASE UNCOMMENT ONE OF THE FOLLOWING TWO LINES ........!!!! THANKS sf */ //$button->set_flags(GTK_VISIBLE | GTK_HAS_GRAB); //gtk::grab_add($button); $button->connect('enter', 'end_stuff', $window3); $window3->add($button); $window->show(); $window3->show_all(); gtk::main(); ?>

« previous php.gtk.general (#851) next »