From 9be8859d92e4bbec2462e82457d014f0a0d720db Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 26 Dec 2005 15:54:54 +0000 Subject: --- .../protected/pages/Fundamentals/Controls.page | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 demos/quickstart/protected/pages/Fundamentals/Controls.page (limited to 'demos/quickstart/protected/pages/Fundamentals/Controls.page') 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 @@ + +

Controls

+

+A control is an instance of class TControl or its subclass. A control is a component defined in addition with user interface. The base class TControl defines the parent-child relationship among controls which reflects the containment relationship among user interface elements. +

+ +

Parent-Child Relationship

+

+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. +

+

+The parent-child relationship is usually established by the framework via templates. In code, you may explicitly specify a control as a child of another using the following method, +

+$parent->Controls->add($child);
+
+where the property Controls refers to the child control collection of the parent. +

+ +
\ No newline at end of file -- cgit v1.2.3