From dd76d0c2cfa3425c2e8dad54f2bcb12148957db5 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 21 Jan 2006 15:25:10 +0000 Subject: Added TLinkButton demos. --- .../quickstart/protected/pages/Controls/List.page | 24 ++++++++- .../pages/Controls/Samples/TButton/Home.page | 2 +- .../pages/Controls/Samples/TLinkButton/Home.page | 58 ++++++++++++++++++++++ .../pages/Controls/Samples/TLinkButton/Home.php | 14 ++++++ .../protected/pages/Controls/Simple.page | 2 +- 5 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.php (limited to 'demos/quickstart') diff --git a/demos/quickstart/protected/pages/Controls/List.page b/demos/quickstart/protected/pages/Controls/List.page index 5b0e766a..557a8c6f 100644 --- a/demos/quickstart/protected/pages/Controls/List.page +++ b/demos/quickstart/protected/pages/Controls/List.page @@ -2,12 +2,32 @@

List Controls

-List controls covered in this section are all inherit directly or indirectly from TDataBoundControl. Therefore, you can do various databinding operations with them. More details about databinding will be given in later sections. +List controls covered in this section all inherit directly or indirectly from TListControl. Therefore, they share the same set of commonly used properties, including, +

+

+

+Since TListControl inherits from TDataBoundControl, these list controls also share a common operation known as databinding. The data to be bound can be specified via either DataSource or DataSourceID. More details about databinding are covered in later chapters of this tutorial.

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. +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.

diff --git a/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page index 7c5b90b4..eb1bc235 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page @@ -5,7 +5,7 @@
-Button with customized color, font, columns, maximum length: +Button with customized color, font and width: + +

TLinkButton Samples

+ + + + + + + + + + + + + +
+Link button with customized color and font: + + +
+Link button with only body content: + + +body content + +
+A click link button: + + +
+A command link button: + + +
+A button causing validation: + + + + +
+ + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.php new file mode 100644 index 00000000..f18072f2 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.php @@ -0,0 +1,14 @@ +Text="Name: {$param->CommandName}, Param: {$param->CommandParameter}"; + else + $sender->Text="I'm clicked"; + } +} + +?> \ 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 874d274c..c04e591f 100644 --- a/demos/quickstart/protected/pages/Controls/Simple.page +++ b/demos/quickstart/protected/pages/Controls/Simple.page @@ -49,7 +49,7 @@ Clicking on button can trigger form validation, if CausesValidationis t

TLinkButton

-TLinkButton is similar to TButton in every aspect except that TLinkButton is displayed as a hyperlink. The link text is determined by its Text property. If the Text property is empty, then the body content of the button is displayed (therefore, you can enclose a <img;> tag within the button body and get an image button. +TLinkButton is similar to TButton in every aspect except that TLinkButton is displayed as a hyperlink. The link text is determined by its Text property. If the Text property is empty, then the body content of the button is displayed (therefore, you can enclose a <img> tag within the button body and get an image button.

-- cgit v1.2.3