cvs: presentations /slides/gtk custom.xml

From: Date: Wed, 28 Jul 2004 18:17:41 +0000
Subject: cvs: presentations /slides/gtk custom.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1012@lists.php.net to get a copy of this message
andrei Wed Jul 28 14:17:41 2004 EDT Added files: /presentations/slides/gtk custom.xml Log: Add. http://cvs.php.net/co.php/presentations/slides/gtk/custom.xml?r=1.1&p=1 Index: presentations/slides/gtk/custom.xml +++ presentations/slides/gtk/custom.xml <slide title="Extending Widgets" logo1="images/php-gtk.gif" navColor="#b0c2d3" navsize="1.4em"> <blurb> Since this is an object-oriented toolkit, we can extend default widget classes. </blurb> <example fontsize="1.5ex"><![CDATA[<?php class Uppercase_Button extends GtkButton { function Uppercase_Button($label = null) { if (isset($label)) $this->GtkButton(strtoupper($label)); else $this->GtkButton(); ... } } $ok =& new Uppercase_Button('click this'); $box->pack_start($ok); ?>]]></example> <blurb> Make sure to call base class's constructor. </blurb> </slide>

« previous php.pres (#1012) next »