Re: set_icon()
| From: | Alan Knowles | Date: | Fri, 06 Sep 2002 01:36:16 +0000 |
| Subject: | Re: set_icon() | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2396@lists.php.net to get a copy of this message | ||
seting the icon for windows is not avaiable via gtk, the only way to do it would be to rebuild the php_win.exe file (using MSVC) with another ico file.
regards
alan
Francesco wrote:
Hi, I try the following code to change the window icon on win32, but it doesn't seem to work (the icon remains the default one). Does anyone know if gdkwindow::set_icon() works on win32 ? thanks // code //////////////////////////////////////////////////////////////////////////// ///////////////// $window = &new gtkWindow(); $window->connect('configure-event', 'callback_configure_event'); function callback_configure_event($window) { $window->realize(); $w = $window->window; list($pixmap,$mask) = Gdk::pixmap_create_from_xpm($w, null, 'images/icon.xpm'); $w->set_icon(null, $pixmap, $mask); } //////////////////////////////////////////////////////////////////////////// ///////////////////////////////