diff options
author | xue <> | 2005-12-26 15:54:54 +0000 |
---|---|---|
committer | xue <> | 2005-12-26 15:54:54 +0000 |
commit | 9be8859d92e4bbec2462e82457d014f0a0d720db (patch) | |
tree | 8d674a443ab0785d2a68dbfa326abfae3230bbb5 /demos/quickstart/protected/pages/Fundamentals/Controls.page | |
parent | a433c6c39bdaa5a53238596853617228be8ad07f (diff) |
Diffstat (limited to 'demos/quickstart/protected/pages/Fundamentals/Controls.page')
-rw-r--r-- | demos/quickstart/protected/pages/Fundamentals/Controls.page | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Fundamentals/Controls.page b/demos/quickstart/protected/pages/Fundamentals/Controls.page new file mode 100644 index 00000000..7703003d --- /dev/null +++ b/demos/quickstart/protected/pages/Fundamentals/Controls.page @@ -0,0 +1,19 @@ +<com:TContent ID="body" >
+<h1>Controls</h1>
+<p>
+A control is an instance of class <code>TControl</code> or its subclass. A control is a component defined in addition with user interface. The base class <code>TControl</code> defines the parent-child relationship among controls which reflects the containment relationship among user interface elements.
+</p>
+
+<h3>Parent-Child Relationship</h3>
+<p>
+A parent control is in charge of the state transition of its child controls. The rendering result of the child controls are usually used to compose the parent control's presentation.
+</p>
+<p>
+The parent-child relationship is usually established by the framework via <a href="?page=Configurations.Templates1">templates</a>. In code, you may explicitly specify a control as a child of another using the following method,
+<pre class="source">
+$parent->Controls->add($child);
+</pre>
+where the property <code>Controls</code> refers to the child control collection of the parent.
+</p>
+
+</com:TContent>
\ No newline at end of file |