summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-01 21:39:49 +0000
committerctrlaltca@gmail.com <>2011-06-01 21:39:49 +0000
commite6cd6ce701e1c7d6e4f245ef2fff6c7d22914767 (patch)
treedac5a3ed69d13ebc28d758eb4eb05e8d027b1587 /demos/quickstart/protected/pages/ActiveControls/Samples
parent4aa6dcff694eb6bbdbe139ae3eb45a38b2f397ea (diff)
added documentation for TActiveMultiView class
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples')
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page37
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php15
2 files changed, 52 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page
new file mode 100644
index 00000000..6888ad78
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page
@@ -0,0 +1,37 @@
+<com:TContent ID="body">
+
+<h1>TActiveMultiView Samples</h1>
+
+<com:TActiveMultiView ID="MultiView" ActiveViewIndex="0" OnActiveViewChanged="viewChanged">
+ <com:TView ID="View1">
+ <h2>View 1</h2>
+ <p>Please enter a memo:</p>
+ <com:TActiveTextBox ID="Memo" />
+ <hr/>
+ <com:TActiveButton Text="View 2" CommandName="NextView" />
+ <com:TActiveButton Text="View 3" CommandName="SwitchViewIndex" ActiveControl.CallbackParameter="2" />
+ </com:TView>
+ <com:TView>
+ <h2>View 2</h2>
+ <p>Please choose a color:</p>
+ <com:TActiveDropDownList ID="DropDownList">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ </com:TActiveDropDownList>
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="PreviousView" />
+ <com:TActiveButton Text="View 3" CommandName="NextView" />
+ </com:TView>
+ <com:TView>
+ <h2>View 3</h2>
+ <com:TActiveLabel ID="Result1" />
+ <br/>
+ <com:TActiveLabel ID="Result2" />
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="SwitchViewID" ActiveControl.CallbackParameter="View1" />
+ <com:TActiveButton Text="View 2" CommandName="PreviousView" />
+ </com:TView>
+</com:TActiveMultiView>
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php
new file mode 100644
index 00000000..1a5dbed3
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php
@@ -0,0 +1,15 @@
+<?php
+
+class Home extends TPage
+{
+ public function viewChanged($sender,$param)
+ {
+ if($this->MultiView->ActiveViewIndex===2)
+ {
+ $this->Result1->Text="Your text input is: ".$this->Memo->Text;
+ $this->Result2->Text="Your color choice is: ".$this->DropDownList->SelectedValue;
+ }
+ }
+}
+
+?> \ No newline at end of file