OOP
| From: | Faisal Abdullah | Date: | Fri, 13 Dec 2002 04:24:54 +0000 |
| Subject: | OOP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128114@lists.php.net to get a copy of this message | ||
Hi guys,
It goes something like this:
class Myclass extends GtkWindow {
var $run_xpm;
var $pixmap;
var $mask;
function Myclass() {
$this->run_xpm = array("bla", "bla");
$this->GtkWindow(GTK_WINDOW_TOPLEVEL);
$this->connect("destroy", array($this, shutdown));
$this->set_title("Run");
$this->set_border_width(10);
$this->set_policy(false, false, false);
$this->realize();
list($this->pixmap, $this->mask) =
Gdk::pixmap_create_from_xpm_d($this, null, $this->run_xpm);
$this->icon = &new GtkPixmap($this->pixmap, $this->mask);
..
..
..
}
}
In the main loop, i created an object of Myclass, and i get these error and warnings:
Warning: pixmap_create_from_xpm_d() expects argument 1 to be GdkWindow or null, phprun given in
<b>/home/faisal/phprun.php on line 179
Warning: gtkpixmap() expects argument 1 to be GdkPixmap, null given in /home/faisal/phprun.php on
line 180
Fatal error: Cannot create references to/from string offsets nor overloaded objects in
/home/faisal/phprun.php on line 180
Any ideas?
-faisal-
______________________________________