From 29d40192ed3dc0085b5e513ec071c81e03e95d3b Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 23 Mar 2006 13:25:09 +0000 Subject: Reorganized quickstart tutorial. --- .../protected/pages/Controls/Button.page | 16 ++ .../protected/pages/Controls/CheckBox.page | 14 ++ .../protected/pages/Controls/ColorPicker.page | 10 ++ .../quickstart/protected/pages/Controls/Data.page | 19 +++ .../protected/pages/Controls/DataGrid.page | 182 +++++++++++++++++++++ .../protected/pages/Controls/DataGrid1.page | 111 ------------- .../protected/pages/Controls/DataGrid2.page | 75 --------- .../protected/pages/Controls/DatePicker.page | 10 ++ .../protected/pages/Controls/Expression.page | 10 ++ .../protected/pages/Controls/FileUpload.page | 10 ++ .../quickstart/protected/pages/Controls/Head.page | 10 ++ .../protected/pages/Controls/HiddenField.page | 10 ++ .../protected/pages/Controls/HtmlArea.page | 7 + .../protected/pages/Controls/HyperLink.page | 11 ++ .../quickstart/protected/pages/Controls/Image.page | 11 ++ .../protected/pages/Controls/ImageButton.page | 11 ++ .../protected/pages/Controls/ImageMap.page | 6 + .../protected/pages/Controls/InlineFrame.page | 6 + .../protected/pages/Controls/JavascriptLogger.page | 6 + .../quickstart/protected/pages/Controls/Label.page | 11 ++ .../protected/pages/Controls/LinkButton.page | 11 ++ .../protected/pages/Controls/Literal.page | 6 + .../protected/pages/Controls/MultiView.page | 6 + .../quickstart/protected/pages/Controls/Panel.page | 11 ++ .../protected/pages/Controls/PlaceHolder.page | 6 + .../protected/pages/Controls/RadioButton.page | 11 ++ .../protected/pages/Controls/SafeHtml.page | 6 + .../protected/pages/Controls/Standard.page | 120 ++++++++++++++ .../protected/pages/Controls/Statements.page | 6 + .../quickstart/protected/pages/Controls/Table.page | 11 ++ .../protected/pages/Controls/TextBox.page | 11 ++ .../protected/pages/Controls/TextHighlighter.page | 6 + .../protected/pages/Controls/Wizard.page | 6 + 33 files changed, 577 insertions(+), 186 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Button.page create mode 100644 demos/quickstart/protected/pages/Controls/CheckBox.page create mode 100644 demos/quickstart/protected/pages/Controls/ColorPicker.page create mode 100644 demos/quickstart/protected/pages/Controls/Data.page create mode 100644 demos/quickstart/protected/pages/Controls/DataGrid.page delete mode 100644 demos/quickstart/protected/pages/Controls/DataGrid1.page delete mode 100644 demos/quickstart/protected/pages/Controls/DataGrid2.page create mode 100644 demos/quickstart/protected/pages/Controls/DatePicker.page create mode 100644 demos/quickstart/protected/pages/Controls/Expression.page create mode 100644 demos/quickstart/protected/pages/Controls/FileUpload.page create mode 100644 demos/quickstart/protected/pages/Controls/Head.page create mode 100644 demos/quickstart/protected/pages/Controls/HiddenField.page create mode 100644 demos/quickstart/protected/pages/Controls/HtmlArea.page create mode 100644 demos/quickstart/protected/pages/Controls/HyperLink.page create mode 100644 demos/quickstart/protected/pages/Controls/Image.page create mode 100644 demos/quickstart/protected/pages/Controls/ImageButton.page create mode 100644 demos/quickstart/protected/pages/Controls/ImageMap.page create mode 100644 demos/quickstart/protected/pages/Controls/InlineFrame.page create mode 100644 demos/quickstart/protected/pages/Controls/JavascriptLogger.page create mode 100644 demos/quickstart/protected/pages/Controls/Label.page create mode 100644 demos/quickstart/protected/pages/Controls/LinkButton.page create mode 100644 demos/quickstart/protected/pages/Controls/Literal.page create mode 100644 demos/quickstart/protected/pages/Controls/MultiView.page create mode 100644 demos/quickstart/protected/pages/Controls/Panel.page create mode 100644 demos/quickstart/protected/pages/Controls/PlaceHolder.page create mode 100644 demos/quickstart/protected/pages/Controls/RadioButton.page create mode 100644 demos/quickstart/protected/pages/Controls/SafeHtml.page create mode 100644 demos/quickstart/protected/pages/Controls/Standard.page create mode 100644 demos/quickstart/protected/pages/Controls/Statements.page create mode 100644 demos/quickstart/protected/pages/Controls/Table.page create mode 100644 demos/quickstart/protected/pages/Controls/TextBox.page create mode 100644 demos/quickstart/protected/pages/Controls/TextHighlighter.page create mode 100644 demos/quickstart/protected/pages/Controls/Wizard.page (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/Button.page b/demos/quickstart/protected/pages/Controls/Button.page new file mode 100644 index 00000000..e58571d3 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Button.page @@ -0,0 +1,16 @@ + + +

TButton

+ + +

+TButton creates a click button on a Web page. The button's caption is specified by Text property. A button is used to submit data to a page. TButton raises two server-side events, Click and Command, when it is clicked on the client-side. The difference between Click and Command events is that the latter event is bubbled up to the button's ancestor controls. A Command event handler can use CommandName and CommandParameter associated with the event to perform specific actions. +

+

+Clicking on button can trigger form validation, if CausesValidation is true. And the validation may be restricted within a certain group of validator controls according to ValidationGroup. +

+ + +TODO: custom attributes + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/CheckBox.page b/demos/quickstart/protected/pages/Controls/CheckBox.page new file mode 100644 index 00000000..77052997 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/CheckBox.page @@ -0,0 +1,14 @@ + + +

TCheckBox

+ + +

+TCheckBox displays a check box on a Web page. A caption can be specified via Text and displayed beside the check box. It can appear either on the right or left of the check box, which is determined by TextAlign. You may further specify attributes applied to the text by using LabelAttributes. +

+

+To determine whether the check box is checked, test the Checked property. A CheckedChanged event is raised if the state of Checked is changed between posts to the server. If AutoPostBack is true, changing the check box state will cause postback action. And if CausesValidation is also true, upon postback validation will be performed for validators within the specified ValidationGroup. +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/ColorPicker.page b/demos/quickstart/protected/pages/Controls/ColorPicker.page new file mode 100644 index 00000000..6e05584a --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/ColorPicker.page @@ -0,0 +1,10 @@ + + +

TColorPicker

+ + +

+TBD +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Data.page b/demos/quickstart/protected/pages/Controls/Data.page new file mode 100644 index 00000000..36839582 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Data.page @@ -0,0 +1,19 @@ + + +

Data Controls

+ + + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/DataGrid.page b/demos/quickstart/protected/pages/Controls/DataGrid.page new file mode 100644 index 00000000..de6a94e9 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/DataGrid.page @@ -0,0 +1,182 @@ + + +

TDataGrid

+ +

+TDatagrid is an important control in building complex Web applications. It displays data in a tabular format with rows (also called items) and columns. A row is composed by cells, while columns govern how cells should be displayed according to their association with the columns. Data specified via DataSource or DataSourceID are bound to the rows and feed contents to cells. +

+

+TDataGrid is highly interactive. Users can sort the data along specified columns, navigate through different pages of the data, and perform actions, such as editting and deleting, on rows of the data. +

+

+Rows of TDataGrid can be accessed via its Items property. A row (item) can be in one of several modes: browsing, editting and selecting, which affects how cells in the row are displayed. To change an item's mode, modify EditItemIndex or SelectedItemIndex. Note, if an item is in edit mode, then selecting this item will have no effect. +

+ +

Columns

+

+Columns of a data grid determine how the associated cells are displayed. For example, cells associated with a TBoundColumn are displayed differently according to their modes. A cell is displayed as a static text if the cell is in browsing mode, a text box if it is in editting mode, and so on. +

+

+PRADO provides five types of columns: +

+ + +

Item Styles

+

+TDataGrid defines different styles applied to its items. For example, AlternatingItemStyle is applied to alternating items (item 2, 4, 6, etc.) Through these properties, one can set CSS style fields or CSS classes for the items. +

+

+Item styles are applied in a hierarchical way. Styles in higher hierarchy will inherit from styles in lower hierarchy. Starting from the lowest hierarchy, the item styles include item's own style, ItemStyle, AlternatingItemStyle, SelectedItemStyle, and EditItemStyle. Therefore, if background color is set as red in ItemStyle, EditItemStyle will also have red background color, unless it is explicitly set to a different value. +

+ +

Events

+

+TDataGrid provides several events to facilitate manipulation of its items, +

+ + +

Using TDataGrid

+ +

Automatically Generated Columns

+

+TDataGrid by default will create a list of columns based on the structure of the bound data. TDataGrid will read the first row of the data, extract the field names of the row, and construct a column for each field. Each column is of type TBoundColumn. +

+

+The following example displays a list of computer product information using a TDataGrid. Columns are automatically generated. Pay attention to how item styles are specified and inherited. The data are populated into the datagrid using the follow code, which is common among most datagrid applications, +

+ +public function onLoad($param) { + parent::onLoad($param); + if(!$this->IsPostBack) { + $this->DataGrid->DataSource=$this->Data; + $this->DataGrid->dataBind(); + } +} + + + +

Manually Specified Columns

+

+Using automatically generated columns gives a quick way of browsing tabular data. In real applications, however, automatically generated columns are often not sufficient because developers have no way customizing their appearance. Manually specified columns are thus more desirable. +

+

+To manually specify columns, set AutoGenerateColumns to false, and specify the columns in a template like the following, +

+ +<com:TDataGrid ...> + <com:TBoundColumn DataField="name" .../> + <com:TBoundColumn DataField="price" .../> + <com:TEditCommandColumn ...> + ... +</com:TDataGrid> + +

+Note, if AutoGenerateColumns is true and there are manually specified columns, the automatically generated columns will be appended to the manually specified columns. Also note, the datagrid's Columns property contains only manually specified columns and no automatically generated ones. +

+

+The following example uses manually specified columns to show a list of book information, +

+ +

Pay attention to how item (row) styles and column styles cooperate together to affect the appearance of the cells in the datagrid.

+ + + +

Interacting with TDataGrid

+

+Besides the rich data presentation functionalities as demonstrated in previous section, TDataGrid is also highly user interactive. An import usage of TDataGrid is editting or deleting rows of data. The TBoundColumn can adjust the associated cell presentation according to the mode of datagrid items. When an item is in browsing mode, the cell is displayed with a static text; when the item is in editting mode, a textbox is displayed to collect user inputs. TDataGrid provides TEditCommandColumn for switching item modes. In addition, TButtonColumn offers developers the flexibility of creating arbitrary buttons for various user interactions. +

+

+The following example shows how to make the previous book information table an interactive one. It allows users to edit and delete book items from the table. Two additional columns are used in the example to allow users interact with the datagrid: TEditCommandColumn and TButtonColumn. +

+ + +

Sorting

+

+TDataGrid supports sorting its items according to specific columns. To enable sorting, set AllowSorting to true. This will turn column headers into clickable buttons if their SortExpression property is not empty. When users click on the header buttons, an OnSortCommand event will be raised. Developers can write handlers to respond to the sort command and sort the data according to SortExpression which is specified in the corresponding column. +

+

+The following example turns the datagrid in Example 2 into a sortable one. Users can click on the link button displayed in the header of any column, and the data will be sorted in ascending order along that column. +

+ + +

Paging

+

+When dealing with large datasets, paging is helpful in reducing the page size and complexity. TDataGrid has an embedded pager that allows users to specify which page of data they want to see. The pager can be customized via PagerStyle. For example, PagerStyle.Visible determines whether the pager is visible or not; PagerStyle.Position indicates where the pager is displayed; and PagerStyle.Mode specifies what type of pager is displayed, a numeric one or a next-prev one. +

+

+To enable paging, set AllowPaging to true. The number of rows of data displayed in a page is specified by PageSize, while the index (zero-based) of the page currently showing to users is by CurrentPageIndex. When users click on a pager button, TDataGrid raises OnPageIndexChanged event. Typically, the event handler is written as follows, +

+ +public function pageIndexChanged($sender,$param) { + $this->DataGrid->CurrentPageIndex=$param->NewPageIndex; + $this->DataGrid->DataSource=$this->Data; + $this->DataGrid->dataBind(); +} + +

+The following example enables the paging functionality of the datagrid shown in Example 1. In this example, you can set various pager styles interactively to see how they affect the pager display. +

+ + +

Custom Paging

+

+The paging functionality shown above requires loading all data into memory, even though only a portion of them is displayed in a page. For large datasets, this is inefficient and may not always be feasible. TDataGrid provides custom paging to solve this problem. Custom paging only requires the portion of the data to be displayed to end users. +

+

+To enable custom paging, set both AllowPaging and AllowCustomPaging to true. Notify TDataGrid the total number of data items (rows) available by setting VirtualItemCount. And respond to the OnPageIndexChanged event. In the event handler, use the NewPageIndex property of the event parameter to fetch the new page of data from data source. For MySQL database, this can be done by using LIMIT clause in an SQL select statement. +

+ + +

Extending TDataGrid

+

+Besides traditional class inheritance, extensibility of TDataGrid is mainly through developing new datagrid column components. For example, one may want to display an image column. He may use TTemplateColumn to accomplish this task. A better solution is to develop an image column component so that the work can be reused easily in other projects. +

+

+All datagrid column components must inherit from TDataGridColumn. The main method that needs to be overridden is initializeCell() which creates content for cells in the corresponding column. Since each cell is also in an item (row) and the item can have different types (such as Header, AltneratingItem, etc.), different content may be created according to the item type. For the image column example, one may want to create a TImage control within cells residing in items of Item and AlterantingItem types. +

+ +class ImageColumn extends TDataGridColumn { + ... + public function initializeCell($cell,$columnIndex,$itemType) { + parent::initializeCell($cell,$columnIndex,$itemType); + if($itemType==='Item' || $itemType==='AlternatingItem') { + $image=new TImage; + // ... customization of the image + $cell->Controls[]=$image; + } + } +} + +

+In initializeCell(), remember to call the parent implementation, as it initializes cells in items of Header and Footer types. +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/DataGrid1.page b/demos/quickstart/protected/pages/Controls/DataGrid1.page deleted file mode 100644 index dde372f5..00000000 --- a/demos/quickstart/protected/pages/Controls/DataGrid1.page +++ /dev/null @@ -1,111 +0,0 @@ - - -

TDataGrid : Part I

- -

-TDatagrid is an important control in building complex Web applications. It displays data in a tabular format with rows (also called items) and columns. A row is composed by cells, while columns govern how cells should be displayed according to their association with the columns. Data specified via DataSource or DataSourceID are bound to the rows and feed contents to cells. -

-

-TDataGrid is highly interactive. Users can sort the data along specified columns, navigate through different pages of the data, and perform actions, such as editting and deleting, on rows of the data. -

-

-Rows of TDataGrid can be accessed via its Items property. A row (item) can be in one of several modes: browsing, editting and selecting, which affects how cells in the row are displayed. To change an item's mode, modify EditItemIndex or SelectedItemIndex. Note, if an item is in edit mode, then selecting this item will have no effect. -

- -

Columns

-

-Columns of a data grid determine how the associated cells are displayed. For example, cells associated with a TBoundColumn are displayed differently according to their modes. A cell is displayed as a static text if the cell is in browsing mode, a text box if it is in editting mode, and so on. -

-

-PRADO provides five types of columns: -

- - -

Item Styles

-

-TDataGrid defines different styles applied to its items. For example, AlternatingItemStyle is applied to alternating items (item 2, 4, 6, etc.) Through these properties, one can set CSS style fields or CSS classes for the items. -

-

-Item styles are applied in a hierarchical way. Styles in higher hierarchy will inherit from styles in lower hierarchy. Starting from the lowest hierarchy, the item styles include item's own style, ItemStyle, AlternatingItemStyle, SelectedItemStyle, and EditItemStyle. Therefore, if background color is set as red in ItemStyle, EditItemStyle will also have red background color, unless it is explicitly set to a different value. -

- -

Events

-

-TDataGrid provides several events to facilitate manipulation of its items, -

- - -

Using TDataGrid

- -

Automatically Generated Columns

-

-TDataGrid by default will create a list of columns based on the structure of the bound data. TDataGrid will read the first row of the data, extract the field names of the row, and construct a column for each field. Each column is of type TBoundColumn. -

-

-The following example displays a list of computer product information using a TDataGrid. Columns are automatically generated. Pay attention to how item styles are specified and inherited. The data are populated into the datagrid using the follow code, which is common among most datagrid applications, -

- -public function onLoad($param) { - parent::onLoad($param); - if(!$this->IsPostBack) { - $this->DataGrid->DataSource=$this->Data; - $this->DataGrid->dataBind(); - } -} - - - -

Manually Specified Columns

-

-Using automatically generated columns gives a quick way of browsing tabular data. In real applications, however, automatically generated columns are often not sufficient because developers have no way customizing their appearance. Manually specified columns are thus more desirable. -

-

-To manually specify columns, set AutoGenerateColumns to false, and specify the columns in a template like the following, -

- -<com:TDataGrid ...> - <com:TBoundColumn DataField="name" .../> - <com:TBoundColumn DataField="price" .../> - <com:TEditCommandColumn ...> - ... -</com:TDataGrid> - -

-Note, if AutoGenerateColumns is true and there are manually specified columns, the automatically generated columns will be appended to the manually specified columns. Also note, the datagrid's Columns property contains only manually specified columns and no automatically generated ones. -

-

-The following example uses manually specified columns to show a list of book information, -

- -

Pay attention to how item (row) styles and column styles cooperate together to affect the appearance of the cells in the datagrid.

- - -
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/DataGrid2.page b/demos/quickstart/protected/pages/Controls/DataGrid2.page deleted file mode 100644 index ed169b1a..00000000 --- a/demos/quickstart/protected/pages/Controls/DataGrid2.page +++ /dev/null @@ -1,75 +0,0 @@ - - -

TDataGrid : Part II

- -

Interacting with TDataGrid

-

-Besides the rich data presentation functionalities as demonstrated in previous section, TDataGrid is also highly user interactive. An import usage of TDataGrid is editting or deleting rows of data. The TBoundColumn can adjust the associated cell presentation according to the mode of datagrid items. When an item is in browsing mode, the cell is displayed with a static text; when the item is in editting mode, a textbox is displayed to collect user inputs. TDataGrid provides TEditCommandColumn for switching item modes. In addition, TButtonColumn offers developers the flexibility of creating arbitrary buttons for various user interactions. -

-

-The following example shows how to make the previous book information table an interactive one. It allows users to edit and delete book items from the table. Two additional columns are used in the example to allow users interact with the datagrid: TEditCommandColumn and TButtonColumn. -

- - -

Sorting

-

-TDataGrid supports sorting its items according to specific columns. To enable sorting, set AllowSorting to true. This will turn column headers into clickable buttons if their SortExpression property is not empty. When users click on the header buttons, an OnSortCommand event will be raised. Developers can write handlers to respond to the sort command and sort the data according to SortExpression which is specified in the corresponding column. -

-

-The following example turns the datagrid in Example 2 into a sortable one. Users can click on the link button displayed in the header of any column, and the data will be sorted in ascending order along that column. -

- - -

Paging

-

-When dealing with large datasets, paging is helpful in reducing the page size and complexity. TDataGrid has an embedded pager that allows users to specify which page of data they want to see. The pager can be customized via PagerStyle. For example, PagerStyle.Visible determines whether the pager is visible or not; PagerStyle.Position indicates where the pager is displayed; and PagerStyle.Mode specifies what type of pager is displayed, a numeric one or a next-prev one. -

-

-To enable paging, set AllowPaging to true. The number of rows of data displayed in a page is specified by PageSize, while the index (zero-based) of the page currently showing to users is by CurrentPageIndex. When users click on a pager button, TDataGrid raises OnPageIndexChanged event. Typically, the event handler is written as follows, -

- -public function pageIndexChanged($sender,$param) { - $this->DataGrid->CurrentPageIndex=$param->NewPageIndex; - $this->DataGrid->DataSource=$this->Data; - $this->DataGrid->dataBind(); -} - -

-The following example enables the paging functionality of the datagrid shown in Example 1. In this example, you can set various pager styles interactively to see how they affect the pager display. -

- - -

Custom Paging

-

-The paging functionality shown above requires loading all data into memory, even though only a portion of them is displayed in a page. For large datasets, this is inefficient and may not always be feasible. TDataGrid provides custom paging to solve this problem. Custom paging only requires the portion of the data to be displayed to end users. -

-

-To enable custom paging, set both AllowPaging and AllowCustomPaging to true. Notify TDataGrid the total number of data items (rows) available by setting VirtualItemCount. And respond to the OnPageIndexChanged event. In the event handler, use the NewPageIndex property of the event parameter to fetch the new page of data from data source. For MySQL database, this can be done by using LIMIT clause in an SQL select statement. -

- - -

Extending TDataGrid

-

-Besides traditional class inheritance, extensibility of TDataGrid is mainly through developing new datagrid column components. For example, one may want to display an image column. He may use TTemplateColumn to accomplish this task. A better solution is to develop an image column component so that the work can be reused easily in other projects. -

-

-All datagrid column components must inherit from TDataGridColumn. The main method that needs to be overridden is initializeCell() which creates content for cells in the corresponding column. Since each cell is also in an item (row) and the item can have different types (such as Header, AltneratingItem, etc.), different content may be created according to the item type. For the image column example, one may want to create a TImage control within cells residing in items of Item and AlterantingItem types. -

- -class ImageColumn extends TDataGridColumn { - ... - public function initializeCell($cell,$columnIndex,$itemType) { - parent::initializeCell($cell,$columnIndex,$itemType); - if($itemType==='Item' || $itemType==='AlternatingItem') { - $image=new TImage; - // ... customization of the image - $cell->Controls[]=$image; - } - } -} - -

-In initializeCell(), remember to call the parent implementation, as it initializes cells in items of Header and Footer types. -

- -
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/DatePicker.page b/demos/quickstart/protected/pages/Controls/DatePicker.page new file mode 100644 index 00000000..5425f2ab --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/DatePicker.page @@ -0,0 +1,10 @@ + + +

TDatePicker

+ + +

+TBD +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Expression.page b/demos/quickstart/protected/pages/Controls/Expression.page new file mode 100644 index 00000000..767f292f --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Expression.page @@ -0,0 +1,10 @@ + + +

TExpression

+ + +

+TBD +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/FileUpload.page b/demos/quickstart/protected/pages/Controls/FileUpload.page new file mode 100644 index 00000000..873d4bc7 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/FileUpload.page @@ -0,0 +1,10 @@ + + +

TFileUpload

+ + +

+TBD +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Head.page b/demos/quickstart/protected/pages/Controls/Head.page new file mode 100644 index 00000000..269ec404 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Head.page @@ -0,0 +1,10 @@ + + +

THead

+ + +

+TBD +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/HiddenField.page b/demos/quickstart/protected/pages/Controls/HiddenField.page new file mode 100644 index 00000000..8b04d928 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/HiddenField.page @@ -0,0 +1,10 @@ + + +

THiddenField

+ + +

+TBD +

+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/HtmlArea.page b/demos/quickstart/protected/pages/Controls/HtmlArea.page new file mode 100644 index 00000000..992f417e --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/HtmlArea.page @@ -0,0 +1,7 @@ + + +

THtmlArea

+ + + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/HyperLink.page b/demos/quickstart/protected/pages/Controls/HyperLink.page new file mode 100644 index 00000000..afccd041 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/HyperLink.page @@ -0,0 +1,11 @@ + + +

THyperLink

+ + +

+THyperLink displays a hyperlink on a page. The hyperlink URL is specified via the NavigateUrl property, and link text is via the Text property. The link target is specified via the Target property. It is also possible to display an image by setting the ImageUrl property. In this case, Text is displayed as the alternate text of the image. If both ImageUrl and Text are empty, the content enclosed within the control tag will be rendered. +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Image.page b/demos/quickstart/protected/pages/Controls/Image.page new file mode 100644 index 00000000..a926c204 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Image.page @@ -0,0 +1,11 @@ + + +

TImage

+ + +

+TImage displays an image on a page. The image is specified via the ImageUrl property which takes a relative or absolute URL to the image file. The alignment of the image displayed is set by the ImageAlign property. To set alternate text or long description of the image, use AlternateText or DescriptionUrl, respectively. +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/ImageButton.page b/demos/quickstart/protected/pages/Controls/ImageButton.page new file mode 100644 index 00000000..b4a8de93 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/ImageButton.page @@ -0,0 +1,11 @@ + + +

TImageButton

+ + +

+TImageButton is also similar to TButton, except that TImageButton displays the button as an image. The image is specified via ImageUrl, and the alternate text is specified by Text. In addition, it is possible to obtain the coordinate of the point where the image is clicked. The coordinate information is contained in the event parameter of the Click event (not Command). +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/ImageMap.page b/demos/quickstart/protected/pages/Controls/ImageMap.page new file mode 100644 index 00000000..0d7d65b1 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/ImageMap.page @@ -0,0 +1,6 @@ + + +

TImageMap

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/InlineFrame.page b/demos/quickstart/protected/pages/Controls/InlineFrame.page new file mode 100644 index 00000000..ea89a690 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/InlineFrame.page @@ -0,0 +1,6 @@ + + +

TInlineFrame

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/JavascriptLogger.page b/demos/quickstart/protected/pages/Controls/JavascriptLogger.page new file mode 100644 index 00000000..8b3c63c8 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/JavascriptLogger.page @@ -0,0 +1,6 @@ + + +

TJavascriptLogger

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Label.page b/demos/quickstart/protected/pages/Controls/Label.page new file mode 100644 index 00000000..69329c8a --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Label.page @@ -0,0 +1,11 @@ + + +

TLabel

+ + +

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

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/LinkButton.page b/demos/quickstart/protected/pages/Controls/LinkButton.page new file mode 100644 index 00000000..eb22f9ce --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/LinkButton.page @@ -0,0 +1,11 @@ + + +

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

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Literal.page b/demos/quickstart/protected/pages/Controls/Literal.page new file mode 100644 index 00000000..edf3bf09 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Literal.page @@ -0,0 +1,6 @@ + + +

TLiteral

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/MultiView.page b/demos/quickstart/protected/pages/Controls/MultiView.page new file mode 100644 index 00000000..8c21bbf5 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/MultiView.page @@ -0,0 +1,6 @@ + + +

TMultiView

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Panel.page b/demos/quickstart/protected/pages/Controls/Panel.page new file mode 100644 index 00000000..b402cd8f --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Panel.page @@ -0,0 +1,11 @@ + + +

TPanel

+ + +

+TPanel acts as a presentational container for other control. It displays a <div> element on a page. The property Wrap specifies whether the panel's body content should wrap or not, while HorizontalAlign governs how the content is aligned horizontally and Direction indicates the content direction (left to right or right to left). You can set BackImageUrl to give a background image to the panel, and you can ste GroupingText so that the panel is displayed as a field set with a legend text. Finally, you can specify a default button to be fired when users press 'return' key within the panel by setting the DefaultButton property. +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/PlaceHolder.page b/demos/quickstart/protected/pages/Controls/PlaceHolder.page new file mode 100644 index 00000000..1291c149 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/PlaceHolder.page @@ -0,0 +1,6 @@ + + +

TPlaceHolder

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/RadioButton.page b/demos/quickstart/protected/pages/Controls/RadioButton.page new file mode 100644 index 00000000..5e1d9d21 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/RadioButton.page @@ -0,0 +1,11 @@ + + +

TRadioButton

+ + +

+TRadioButton is similar to TCheckBox in every aspect, except that TRadioButton displays a radio button on a Web page. The radio button can belong to a specific group specified by GroupName such that only one radio button within that group can be selected at most. +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/SafeHtml.page b/demos/quickstart/protected/pages/Controls/SafeHtml.page new file mode 100644 index 00000000..16561672 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/SafeHtml.page @@ -0,0 +1,6 @@ + + +

TSafeHtml

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page new file mode 100644 index 00000000..67cb2bc1 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -0,0 +1,120 @@ + + +

Standard Controls

+ + + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Statements.page b/demos/quickstart/protected/pages/Controls/Statements.page new file mode 100644 index 00000000..28f25791 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Statements.page @@ -0,0 +1,6 @@ + + +

TStatements

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Table.page b/demos/quickstart/protected/pages/Controls/Table.page new file mode 100644 index 00000000..75fa3fc1 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Table.page @@ -0,0 +1,11 @@ + + +

TTable

+ + +

+TTable displays an HTML table on a page. It is used together with TTableRow and TTableCell to allow programmatically manipulating HTML tables. The rows of the table is stored in Rows property. You may set the table cellspacing and cellpadding via the CellSpacing and CellPadding properties, respectively. The table caption can be specified via Caption whose alignment is specified by CaptionAlign. The GridLines property indicates how the table should display its borders, and the BackImageUrl allows the table to have a background image. +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/TextBox.page b/demos/quickstart/protected/pages/Controls/TextBox.page new file mode 100644 index 00000000..64cb826a --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/TextBox.page @@ -0,0 +1,11 @@ + + +

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 diff --git a/demos/quickstart/protected/pages/Controls/TextHighlighter.page b/demos/quickstart/protected/pages/Controls/TextHighlighter.page new file mode 100644 index 00000000..8ef30c71 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/TextHighlighter.page @@ -0,0 +1,6 @@ + + +

TTextHighlighter

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Wizard.page b/demos/quickstart/protected/pages/Controls/Wizard.page new file mode 100644 index 00000000..11fb4bfa --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Wizard.page @@ -0,0 +1,6 @@ + + +

TWizard

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