From 94e49ca4633600269831c4e80af25ddcfa3a8258 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 29 Dec 2005 19:58:07 +0000 Subject: Added TTextBox demos. --- .../protected/pages/Controls/Samples/Label.page | 23 ++++-- .../protected/pages/Controls/Samples/TextBox.page | 81 ++++++++++++++++++++++ .../protected/pages/Controls/Samples/TextBox.php | 16 +++++ .../protected/pages/Controls/Simple.page | 6 ++ 4 files changed, 122 insertions(+), 4 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TextBox.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TextBox.php (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/Samples/Label.page b/demos/quickstart/protected/pages/Controls/Samples/Label.page index 2fa77988..381541a0 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/Label.page +++ b/demos/quickstart/protected/pages/Controls/Samples/Label.page @@ -3,28 +3,43 @@

TLabel Samples

+ +
+ -
- + +
+
- + + This is a label with empty Text property and nonempty body. + +
+ +
+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TextBox.page b/demos/quickstart/protected/pages/Controls/Samples/TextBox.page new file mode 100644 index 00000000..43ab16f7 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TextBox.page @@ -0,0 +1,81 @@ + + +

TTextBox Samples

+ +
+
SingleLine and Password Text Boxes
+ +Text box with default settings: + +
+ +Password text box: + +
+ +Text box with customized color, font, columns, maximum length: + +
+ +Disabled text box: + +
+ +Read-only text box: + +
+ +Auto postback text box: + +
+ +Text box's behavior upon postback: + + + +
+ +
+
MultiLine Text Boxes
+ +Text box with default settings:
+ +
+ +Text box with customized dimensions, font and content:
+ + +This is a multiline text box. +In HTML, it is displayed as a textarea. + + +
+ +Disabled text box:
+ +
+ +Read-only text box with text-wrapping disabled:
+ +
+ +Auto postback text box:
+ +
+
+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TextBox.php b/demos/quickstart/protected/pages/Controls/Samples/TextBox.php new file mode 100644 index 00000000..1e6478de --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TextBox.php @@ -0,0 +1,16 @@ +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 94061711..5a145102 100644 --- a/demos/quickstart/protected/pages/Controls/Simple.page +++ b/demos/quickstart/protected/pages/Controls/Simple.page @@ -8,4 +8,10 @@

+

TTextBox

+

+TTextBox displays a text box on a Web page. The content in the text box is determined by the Text property. You can create a SingleLine, a MultiLine, or a Password text box by setting the TextMode property. The Rows and Columns properties specify their dimensions. If AutoPostBack is true, changing the content in the text box and then moving the focus out of it will cause postback action. +

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