From 2f36ce50b85cf0d02174464356e6636d14f4c19a Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 2 Apr 2006 00:23:25 +0000 Subject: Added TMultiView tutorial and demo. --- .../protected/pages/Controls/MultiView.page | 37 ++++++++++++++++++++++ .../protected/pages/Controls/Standard.page | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/MultiView.page b/demos/quickstart/protected/pages/Controls/MultiView.page index 8c21bbf5..7e566181 100644 --- a/demos/quickstart/protected/pages/Controls/MultiView.page +++ b/demos/quickstart/protected/pages/Controls/MultiView.page @@ -3,4 +3,41 @@

TMultiView

+

+TMultiView serves as a container for a group of TView controls, which can be retrieved by the Views property. Each view contains child controls. TMultiView determines which view and its child controls are visible. At any time, at most one view is visible (called active). To make a view active, set ActiveView or ActiveViewIndex. Note, by default there is no active view. +

+

+To add a view to TMultiView, manipulate the Views collection or add it in template as follows, +

+ +<com:TMultiView> + <com:TView> + view 1 content + </com:TView> + <com:TView> + view 2 content + </com:TView> +</com:TMultiView> + + +

+TMultiView responds to the following command events to manage the visibility of its views. +

+ + +

+Upon postback, if the active view index is changed, TMultiView will raise an OnActiveViewChanged event. +

+ +

+The Hangman game is a typical use of TMultiView. The following example demonstrates another usage of TMultiView. +

+ + + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index 2b2eaf29..af4d6877 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -75,7 +75,7 @@ TLiteral represents a static text without any HTML tag surrounding it on a Web page. -
  • * +
  • TMultiView represents a container for a group of TView controls, each of which is container for other controls. At any time, at most one TView is visible.
  • -- cgit v1.2.3