From ccdb91a35602377fe389c6c5b0945478929e0eca Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 28 Dec 2005 22:41:20 +0000 Subject: Adding TTextHighlighter for quickstart docs. --- .../quickstart/protected/pages/Fundamentals/Components.page | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/quickstart/protected/pages/Fundamentals') diff --git a/demos/quickstart/protected/pages/Fundamentals/Components.page b/demos/quickstart/protected/pages/Fundamentals/Components.page index 20888fba..be71b18b 100644 --- a/demos/quickstart/protected/pages/Fundamentals/Components.page +++ b/demos/quickstart/protected/pages/Fundamentals/Components.page @@ -7,7 +7,7 @@ A component is an instance of TComponent or its child class. The base c

Component Properties

A component property can be viewed as a public variable describing a specific aspect of the component, such as the background color, the font size, etc. A property is defined by the existence of a getter and/or a setter method in the component class. For example, in TControl, we define its ID property using the following getter and setter methods, -

+
 class TControl extends TComponent {
     public function getID() {
         ...
@@ -16,7 +16,7 @@ class TControl extends TComponent {
         ...
     }
 }
-
+

To get or set the ID property, do as follows, just like working with a variable, @@ -58,20 +58,20 @@ Component events are special properties that take method names as their values.

A component event is defined by the existence of an on-method. For example, in TButton, we have -

+
 class TButton extends TWebControl {
     public function onClick($param) {
         ...
     }
 }
-
+ This defines an event named Click, and a handler can be attached to the event using one of the following ways, -
+
 $button->Click=$callback;
 $button->Click->add($callback);
 $button->Click[]=$callback;
 $button->attachEventHandler('Click',$callback);
-
+ where $callback refers to a valid PHP callback (e.g. a function name, a class method array($object,'method'), etc.)

-- cgit v1.2.3