summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected
diff options
context:
space:
mode:
authorxue <>2005-12-30 14:51:01 +0000
committerxue <>2005-12-30 14:51:01 +0000
commit55c54744146c91afc00e9a434dc05fb0f4fcde1d (patch)
treea8072923a7b25dae59e2a9986bea2b1791fced47 /demos/quickstart/protected
parent1e24e7487161a12eb4379266941d2babab1c8ad4 (diff)
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r--demos/quickstart/protected/controls/TopicList.tpl2
-rw-r--r--demos/quickstart/protected/pages/Controls/List.page19
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page (renamed from demos/quickstart/protected/pages/Controls/Samples/TLabel/Samples.page)0
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page (renamed from demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page)0
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.php (renamed from demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php)0
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page81
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php16
-rw-r--r--demos/quickstart/protected/pages/Controls/Simple.page4
8 files changed, 119 insertions, 3 deletions
diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl
index 93563b9b..16f6b59d 100644
--- a/demos/quickstart/protected/controls/TopicList.tpl
+++ b/demos/quickstart/protected/controls/TopicList.tpl
@@ -34,7 +34,7 @@
<span>Controls</span><br/>
<a href="?page=Controls.Overview">Overview</a><br/>
<a href="?page=Controls.Simple">Simple HTML Controls</a><br/>
-<a href="?page=Construction">List Controls</a><br/>
+<a href="?page=Controls.List">List Controls</a><br/>
<a href="?page=Construction">Validation Controls</a><br/>
<a href="?page=Construction">TRepeater</a><br/>
<a href="?page=Construction">TDataList</a><br/>
diff --git a/demos/quickstart/protected/pages/Controls/List.page b/demos/quickstart/protected/pages/Controls/List.page
new file mode 100644
index 00000000..4a3610fc
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/List.page
@@ -0,0 +1,19 @@
+<com:TContent ID="body" >
+
+<h1>List Controls</h1>
+
+<h2>TListBox</h2>
+<p>
+<tt>TListBox</tt> displays a list box that allows single or multiple selection. Set the property <tt>SelectionMode</tt> as <tt>Single</tt> to make a single selection list box, and <tt>Multiple</tt> a multiple selection list box. The items in the list box are represented by the <tt>Items</tt> property. The number of rows displayed in the box is specified via the <tt>Rows</tt> property value. Some other important properties that <tt>TListBox</tt> inherits from <tt>TListControl</tt> include: <tt>Items</tt>, <tt>SelectedIndex</tt>, <tt>SelectedIndices</tt>, <tt>SelectedItem</tt>, <tt>SelectedValue</tt>, <tt>AutoPostBack</tt> and <tt>CausesValidation</tt>. Note, since <tt>TDataBoundControl</tt> is an ancestor class of <tt>TListBox</tt>, you can do various databinding operations with a list box control. More details are covered in sections about databinding.
+</p>
+<com:RunBar PagePath="Controls.Samples.TListBox.Home" />
+
+<h2>TDropDownList</h2>
+
+<h2>TCheckBoxList</h2>
+
+<h2>TRadioButtonList</h2>
+
+<h2>TBulletList</h2>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TLabel/Samples.page b/demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page
index 381541a0..381541a0 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TLabel/Samples.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page
index 43ab16f7..43ab16f7 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.php
index 5f812c9e..5f812c9e 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php
+++ b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.php
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
new file mode 100644
index 00000000..43ab16f7
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
@@ -0,0 +1,81 @@
+<com:TContent ID="body">
+
+<h1>TTextBox Samples</h1>
+
+<div class="samplepanel">
+<div class="sampletitle">SingleLine and Password Text Boxes</div>
+
+Text box with default settings:
+<com:TTextBox />
+<br/>
+
+Password text box:
+<com:TTextBox TextMode="Password" />
+<br/>
+
+Text box with customized color, font, columns, maximum length:
+<com:TTextBox
+ Text="text"
+ ForeColor="yellow"
+ BackColor="blue"
+ Font.Size="14pt"
+ Columns="4"
+ MaxLength="6"
+/>
+<br/>
+
+Disabled text box:
+<com:TTextBox Text="disabled" Enabled="false" />
+<br/>
+
+Read-only text box:
+<com:TTextBox Text="read only" ReadOnly="true" />
+<br/>
+
+Auto postback text box:
+<com:TTextBox Text="change me" AutoPostBack="true" TextChanged="textChanged" />
+<br/>
+
+Text box's behavior upon postback:
+<com:TTextBox ID="TextBox1" Text="text" />
+<com:TButton Text="Submit" Click="submitText" />
+
+</div>
+
+<div class="samplepanel">
+<div class="sampletitle">MultiLine Text Boxes</div>
+
+Text box with default settings:<br/>
+<com:TTextBox TextMode="MultiLine" />
+<br/>
+
+Text box with customized dimensions, font and content:<br/>
+<com:TTextBox TextMode="MultiLine" Rows="6" Columns="60" Font.Italic="true">
+<prop:Text>
+This is a multiline text box.
+In HTML, it is displayed as a textarea.
+</prop:Text>
+</com:TTextBox>
+<br/>
+
+Disabled text box:<br/>
+<com:TTextBox
+ TextMode="MultiLine"
+ Text="disabled"
+ Enabled="false" />
+<br/>
+
+Read-only text box with text-wrapping disabled:<br/>
+<com:TTextBox
+ TextMode="MultiLine"
+ Text="This is a read-only text box with text-wrapping disabled."
+ ReadOnly="true"
+ Wrap="false"/>
+<br/>
+
+Auto postback text box:<br/>
+<com:TTextBox TextMode="MultiLine" Text="change me" AutoPostBack="true" TextChanged="textChanged" />
+<br/>
+</div>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php
new file mode 100644
index 00000000..e3160ead
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php
@@ -0,0 +1,16 @@
+<?php
+
+class Home extends TPage
+{
+ public function textChanged($sender,$param)
+ {
+ $sender->Text="text changed";
+ }
+
+ public function submitText($sender,$param)
+ {
+ $this->TextBox1->Text="You just entered '".$this->TextBox1->Text."'.";
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Simple.page b/demos/quickstart/protected/pages/Controls/Simple.page
index 024f1248..5bce13aa 100644
--- a/demos/quickstart/protected/pages/Controls/Simple.page
+++ b/demos/quickstart/protected/pages/Controls/Simple.page
@@ -6,7 +6,7 @@
<p>
<tt>TLabel</tt> displays a piece of text on a Web page. The text to be displayed is set via its <tt>Text</tt> property. If <tt>Text</tt> is empty, content enclosed within the <tt>TLabel</tt> component tag will be displayed. <tt>TLabel</tt> may also be used as a form label associated with some control on the form. Since <tt>Text</tt> is not HTML-encoded when being rendered, make sure it does not contain dangerous characters that you want to avoid.
</p>
-<com:RunBar PagePath="Controls.Samples.TLabel.Samples" />
+<com:RunBar PagePath="Controls.Samples.TLabel.Home" />
<h2>THyperLink</h2>
@@ -18,7 +18,7 @@
<p>
<tt>TTextBox</tt> displays a text box on a Web page. The content in the text box is determined by the <tt>Text</tt> property. You can create a <tt>SingleLine</tt>, a <tt>MultiLine</tt>, or a <tt>Password</tt> text box by setting the <tt>TextMode</tt> property. The <tt>Rows</tt> and <tt>Columns</tt> properties specify their dimensions. If <tt>AutoPostBack</tt> is true, changing the content in the text box and then moving the focus out of it will cause postback action.
</p>
-<com:RunBar PagePath="Controls.Samples.TTextBox.Samples" />
+<com:RunBar PagePath="Controls.Samples.TTextBox.Home" />
<h2>TButton</h2>