summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-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
5 files changed, 97 insertions, 0 deletions
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