Re: deriving Objects out of GtkWidgets

From: Date: Wed, 09 Jan 2002 19:49:56 +0000
Subject: Re: deriving Objects out of GtkWidgets
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-975@lists.php.net to get a copy of this message
On Tue, 8 Jan 2002, Suraj.co.in wrote: > Hi All, > > I was trying to write a few classes that I thought will come in handy, > such as the ones similar to the gnome-widgets (found in glade-gnome). > > This is a sample code: > > class FileEntry extends GtkHBox { > > var $txtbox; > var $but; > > function someclass () { > parent::GtkHBox(); > $this->txtbox=new GtkEntry(); //see 1 > $this->but=new GtkButton ("Browse"); //see 1 > $this->txtbox->set_editable (true); //see 2 Last I knew the Zend engine couldn't handle this. You'll ned to rewrite this as: $temp_txt = $this->txtbox; $temp_txt->set_editable(true); --rdp -- Rich Payne www.linuxalpha.org

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