Re: Extending PHP1 GTK Widget class with PHP?
| From: | Malk0 | Date: | Tue, 06 Jun 2006 06:45:53 +0000 |
| Subject: | Re: Extending PHP1 GTK Widget class with PHP? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6985@lists.php.net to get a copy of this message | ||
you can do
function SuperTree(){
parent::SuperTree();
}
this would work, by the way depending on what you really want to
achieve it can be more suitable to create an object that contain an
instance of a gtkwidget like this
class SuperTree{
function SuperTree(){
$this->ctree = &new gtkctree();
}
}
this second manner will allow you to have other widget embedded in the
SuperTree class, not the first one.
hope this help,
nathan
On 6/6/06, Benjamin Smith <lists@benjamindsmith.com> wrote:
Is it possible to extend a Gtk Widget in PHP4/GTK1?
EG:
Class SuperTree Extends GtkCTree(
Function SuperTree()
{
// HOW WOULD I INSTANTIATE THE GtkWidget?
}
) // end class SuperTree
-Ben
--
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php