Re: some things...
| From: | Andrei Zmievski | Date: | Fri, 30 Mar 2001 17:19:33 +0000 |
| Subject: | Re: some things... | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1215@lists.php.net to get a copy of this message | ||
On Fri, 30 Mar 2001, Iuri Fiedoruk wrote:
> First on trying to compile php-gtk after a makeclean and phpize on configure:
>
> checking whether to enable PHP GTK+ support... yes, shared
> ./configure: syntax error near unexpected token `PHP_ADD_INCLUDE($n)'
> ./configure: ./configure: line 1517: ` PHP_ADD_INCLUDE($n)'
>
Use latest CVS version of PHP.
> Second, can someone please write a really small pixmap example?
> The one on clist on gtk.php is too much confusing to me understand without
> php-gtk docs. I just want a small pixmap on a window, I can go on from that.
> Thanks for your help.
$window = &new GtkWindow();
list($pixmap, $mask) = Gdk::pixmap_create_from_xpm($window->window,
null, "my.xpm");
$pixmapwid = &new GtkPixmap($pixmap, $mask);
$window->add($pixmapwid);
$window->show_all();
-Andrei
The church is near but the road is icy;
the bar is far away but I will walk carefully. -- Russian proverb