Problem extending GtkVBox

From: Date: Thu, 08 Jan 2004 06:54:43 +0000
Subject: Problem extending GtkVBox
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4341@lists.php.net to get a copy of this message
Hello. I need to build an object having a label and an entry in it (I'm making it an object because I'm going to need six of them). I'm extending the GtkVBox, like this: class LabeledEntry extends GtkVBox { var $arrChildren; function LabeledEntry($labelText,$entryText) { parent::GtkBox(false,0); $this->arrChildren = array(); $this->arrChildren['label'] = &new GtkLabel($labelText); $this->arrChildren['label']->set_alignment(0,0); $this->pack_start($this->arrChildren['label']); $this->arrChildren['entry'] = &new GtkEntry(); $this->arrChildren['entry']->set_text($entryText); $this->pack_start($this->arrChildren['entry']); } function getEntryText($text) { return $this->arrChildren['entry']->get_text(); } function setEntryText($text) { $this->arrChildren['entry']->set_text($text); } } But it gives me this error: Fatal error: Cannot create references to/from string offsets nor overloaded objects in C:\php4\Rectangle.php on line 9 What could be the problem? Thanks for any help. __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus

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