From 55c54744146c91afc00e9a434dc05fb0f4fcde1d Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 30 Dec 2005 14:51:01 +0000 Subject: --- demos/quickstart/protected/controls/TopicList.tpl | 2 +- .../quickstart/protected/pages/Controls/List.page | 19 +++++ .../pages/Controls/Samples/TLabel/Home.page | 45 ++++++++++++ .../pages/Controls/Samples/TLabel/Samples.page | 45 ------------ .../pages/Controls/Samples/TListBox/Home.page | 81 ++++++++++++++++++++++ .../pages/Controls/Samples/TListBox/Home.php | 16 +++++ .../pages/Controls/Samples/TTextBox/Home.page | 81 ++++++++++++++++++++++ .../pages/Controls/Samples/TTextBox/Home.php | 16 +++++ .../pages/Controls/Samples/TTextBox/Samples.page | 81 ---------------------- .../pages/Controls/Samples/TTextBox/Samples.php | 16 ----- .../protected/pages/Controls/Simple.page | 4 +- 11 files changed, 261 insertions(+), 145 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/List.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page delete mode 100644 demos/quickstart/protected/pages/Controls/Samples/TLabel/Samples.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.php create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php delete mode 100644 demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page delete mode 100644 demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php (limited to 'demos/quickstart') 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 @@ Controls
Overview
Simple HTML Controls
-List Controls
+List Controls
Validation Controls
TRepeater
TDataList
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 @@ + + +

List Controls

+ +

TListBox

+

+TListBox displays a list box that allows single or multiple selection. Set the property SelectionMode as Single to make a single selection list box, and Multiple a multiple selection list box. The items in the list box are represented by the Items property. The number of rows displayed in the box is specified via the Rows property value. Some other important properties that TListBox inherits from TListControl include: Items, SelectedIndex, SelectedIndices, SelectedItem, SelectedValue, AutoPostBack and CausesValidation. Note, since TDataBoundControl is an ancestor class of TListBox, you can do various databinding operations with a list box control. More details are covered in sections about databinding. +

+ + +

TDropDownList

+ +

TCheckBoxList

+ +

TRadioButtonList

+ +

TBulletList

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page new file mode 100644 index 00000000..381541a0 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page @@ -0,0 +1,45 @@ + + +

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/TLabel/Samples.page b/demos/quickstart/protected/pages/Controls/Samples/TLabel/Samples.page deleted file mode 100644 index 381541a0..00000000 --- a/demos/quickstart/protected/pages/Controls/Samples/TLabel/Samples.page +++ /dev/null @@ -1,45 +0,0 @@ - - -

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/TListBox/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page new file mode 100644 index 00000000..43ab16f7 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.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/TListBox/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.php new file mode 100644 index 00000000..5f812c9e --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.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/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 @@ + + +

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/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 @@ +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/Samples/TTextBox/Samples.page b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page deleted file mode 100644 index 43ab16f7..00000000 --- a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page +++ /dev/null @@ -1,81 +0,0 @@ - - -

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/TTextBox/Samples.php b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php deleted file mode 100644 index 5f812c9e..00000000 --- a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php +++ /dev/null @@ -1,16 +0,0 @@ -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 @@

TLabel displays a piece of text on a Web page. The text to be displayed is set via its Text property. If Text is empty, content enclosed within the TLabel component tag will be displayed. TLabel may also be used as a form label associated with some control on the form. Since Text is not HTML-encoded when being rendered, make sure it does not contain dangerous characters that you want to avoid.

- +

THyperLink

@@ -18,7 +18,7 @@

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.

- +

TButton

-- cgit v1.2.3