diff options
39 files changed, 802 insertions, 42 deletions
diff --git a/.gitattributes b/.gitattributes index 716d26e5..0d0b1761 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1290,7 +1290,15 @@ demos/quickstart/protected/pages/ActiveControls/ActiveButton.page -text demos/quickstart/protected/pages/ActiveControls/ActiveCheckBox.page -text demos/quickstart/protected/pages/ActiveControls/ActiveCustomValidator.page -text demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveImage.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page -text demos/quickstart/protected/pages/ActiveControls/ActivePager.page -text +demos/quickstart/protected/pages/ActiveControls/ActivePanel.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page -text demos/quickstart/protected/pages/ActiveControls/AutoComplete.page -text demos/quickstart/protected/pages/ActiveControls/DragDrop.page -text demos/quickstart/protected/pages/ActiveControls/Home.page -text @@ -1320,7 +1328,25 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6. demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.tpl -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample1.page -text @@ -1335,6 +1361,8 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample5. demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample5.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.page -text demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/config.xml -text @@ -1512,6 +1540,7 @@ demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.php -text +demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page -text diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page new file mode 100644 index 00000000..8cce8c9e --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page @@ -0,0 +1,16 @@ +<com:TContent ID="body" >
+
+<h1>TActiveImage</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveImage" />
+
+<p class="block-content">
+<tt>TActiveImage</tt> is the active control counter part to <tt>TImage</tt>. <tt>TActiveImage</tt> displays an image on a page. The image is specified via the <tt>ImageUrl</tt> property which takes a relative or absolute URL to the image file. The alignment of the image displayed is set by the <tt>ImageAlign</tt> property. To set alternate text or long description of the image, use <tt>AlternateText</tt> or <tt>DescriptionUrl</tt>, respectively.
+</p>
+
+<p class="block-content">
+TActiveImage allows the <tt>AlternateText</tt>, <tt>ImageAlign</tt>, <tt>ImageUrl</tt>
+and <tt>DescriptionUrl</tt> to be updated during a callback request.
+</p>
+<com:RunBar PagePath="ActiveControls.Samples.TActiveImage.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page new file mode 100644 index 00000000..44b988dd --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page @@ -0,0 +1,17 @@ +<com:TContent ID="body" >
+
+<h1>TActiveImageButton</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveImageButton" />
+
+<p class="block-content">
+<tt>TActiveImageButton</tt> is the active counterpart of <tt>TImageButton</tt>.
+When a <tt>TActiveImageButton</tt> is clicked, rather than a normal post back request a callback request is initiated.
+The<tt>OnCallback</tt> event is raised during a callback request and it is raised <b>after</b> the <tt>OnClick</tt> event.
+</p>
+
+<p class="block-content">
+<tt>TActiveImageButton</tt> is similar to <tt>TActiveButton</tt>, except that <tt>TActiveImageButton</tt> displays the button as an image. The image is specified via <tt>ImageUrl</tt>, and the alternate text is specified by <tt>Text</tt>. 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 <tt>OnClick</tt> event (not <tt>OnCallback</tt>).
+</p>
+<com:RunBar PagePath="ActiveControls.Samples.TActiveImageButton.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page new file mode 100644 index 00000000..8db4cf34 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page @@ -0,0 +1,16 @@ +<com:TContent ID="body" >
+
+<h1>TActiveLabel</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveLabel" />
+
+<p class="block-content">
+<tt>TActiveLabel</tt> is the active control counterpart of <tt>TLabel</tt> component. When
+<tt>ActiveControl.EnableUpdate</tt> property is true during a callback request, setting <tt>Text</tt>
+property will also set the text of the label on the client upon callback
+completion. Similarly, setting <tt>ForControl</tt> will also set
+the client-side "for" attribute on the label.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveLabel.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page new file mode 100644 index 00000000..387b40af --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page @@ -0,0 +1,19 @@ +<com:TContent ID="body" >
+
+<h1>TActiveLinkButton</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveLinkButton" />
+
+<p class="block-content">
+<tt>TActiveLinkButton</tt> is the active control counter part to <tt>TLinkButton</tt>.
+When a <tt>TActiveLinkButton</tt> is clicked, rather than a normal post back request a
+callback request is initiated.
+The <tt>OnCallback</tt> event is raised during a callback request
+and it is raise <b>after</b> the <tt>OnClick</tt> event.
+When the <tt>ActiveControl.EnableUpdate</tt>
+property is true, changing the <tt>Text</tt> property during callback request
+will update the link text upon callback response completion.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveLinkButton.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page new file mode 100644 index 00000000..a9553646 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page @@ -0,0 +1,14 @@ +<com:TContent ID="body" >
+
+<h1>TActiveMultiView</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveMultiView" />
+
+<p class="block-content">
+<tt>TActiveMultiView</tt> is the active counterpart to the original <tt>TMultiView</tt> control.
+<tt>TActiveMultiView</tt> serves as a container for a group of <tt>TView</tt> controls, which can be retrieved by the <tt>Views</tt> property. Each view contains child controls. <tt>TActiveMultiView</tt> determines which view and its child controls are visible. At any time, at most one view is visible (called <i>active</i>). To make a view active, set <tt>ActiveView</tt> or <tt>ActiveViewIndex</tt>. Note, by default there is no active view.
+<tt>TActiveMultiView</tt> is able to render itself on Callback when <tt>ActiveView</tt> or <tt>ActiveViewIndex</tt> properties are changed.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveMultiView.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page new file mode 100644 index 00000000..dcfbc312 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page @@ -0,0 +1,24 @@ +<com:TContent ID="body" >
+
+<h1>TActivePanel</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActivePanel" />
+
+<p class="block-content">
+
+<tt>TActivePanel</tt> is the <tt>TPanel</tt> active control counterpart.
+<tt>TActivePanel</tt> allows the client-side panel contents to be updated during a
+callback response using the <tt>render</tt> method.
+Example: Assume $param is an instance of <tt>TCallbackEventParameter</tt> attached to
+the <tt>OnCallback</tt> event of a <tt>TCallback</tt> with ID "callback1", and
+"panel1" is the ID of a <tt>TActivePanel</tt>.
+
+<com:TTextHighlighter Language="text" CssClass="source block-content">
+function callback1_requested($sender, $param)
+{
+ $this->panel1->render($param->getNewWriter());
+}
+</com:TTextHighlighter>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActivePanel.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page new file mode 100644 index 00000000..ac6cf5ae --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page @@ -0,0 +1,20 @@ +<com:TContent ID="body" >
+
+<h1>TRadioButton</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveRadioButton" />
+
+<p class="block-content">
+<tt>TActiveRadioButton</tt> is the active control counter part to <tt>TRadioButton</tt>.
+The <tt>AutoPostBack</tt> property is set to true by default. Thus, when the radio button is clicked a
+<tt>OnCallback</tt> event is raise after <tt>OnCheckedChanged</tt> event.
+</p>
+
+<p class="block-content">
+The <tt>Text</tt> and <tt>Checked</tt> properties can be changed during a callback.
+The <tt>GroupName</tt> property may <b>NOT</b> be changed during callback because the client-side
+<tt>name</tt> attribute is read-only and can not be changed using javascript.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveRadioButton.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page new file mode 100644 index 00000000..9a508e32 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page @@ -0,0 +1,15 @@ +<com:TContent ID="body" >
+
+<h1>TActiveTextBox</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveTextBox" />
+
+<p class="block-content">
+<tt>TActiveTextBox</tt> is the active control counterpart of <tt>TTextBox</tt> component.
+<tt>TActiveTextBox</tt> allows the <tt>Text</tt> property of the textbox to
+be changed during callback. When <tt>AutoPostBack</tt> property
+is true, changes to the textbox contents will perform a callback request causing
+<tt>OnTextChanged</tt> to be fired first followed by <tt>OnCallback</tt> event.
+</p>
+<com:RunBar PagePath="ActiveControls.Samples.TActiveTextBox.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index d23f689f..93b5b6eb 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -43,29 +43,35 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria </li>
<li>
- * <a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
+ <a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
represents an image on a Web page.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
+ <a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
represents a click button that has an image as the background.
It is can be used to trigger a callback request.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
- represents a label on a Web page.
- The label can be customized via various CSS attributes.
+ <a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
+ represents a label on a Web page.
+ The label can be customized via various CSS attributes.
+ </li>
+
+ <li>
+ <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
+ represents a hyperlink that can perform a callback request.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
- represents a hyperlink that can perform a callback request.
+ <a href="?page=ActiveControls.ActiveMultiView">TActiveMultiView</a>
+ represents a container for a group of TView controls, each of which is container for other controls.
+ At any time, at most one TView is visible. It's the active counterpart of TMultiView.
</li>
<li>
- * <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
+ <a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
represents a container for other controls on a Web page. In HTML,
it is displayed as a <div> element. The panel's contents
can be replaced during a callback request.
@@ -78,23 +84,17 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria </li>
<li>
- * <a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
+ <a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
represents a radiobutton on a Web page.
It is mainly used in a group from which users make a choice. It can
be used to perform a callback request.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveTableRow">TActiveTableRow and TActiveTableCell</a>
- represents a table row (or cell) which can be updated on callback, and can raise a callback
- when clicked.
- </li>
-
- <li>
- * <a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
- represents a text input field on a Web page.
- It can collect single-line, multi-line or password text input from users.
- It can be used to perform a callback request.
+ <a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
+ represents a text input field on a Web page.
+ It can collect single-line, multi-line or password text input from users.
+ It can be used to perform a callback request.
</li>
<li>
@@ -109,7 +109,7 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria <li>
* <a href="?page=ActiveControls.ActiveCheckBoxList">TActiveCheckBoxList</a>
displays a list of checkboxes on a Web page and each checkbox
- can trigger a callback request.
+ can trigger a callback request.
</li>
<li>
@@ -131,23 +131,27 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria TActiveRadioButtonList displays a group of radiobuttons. Each radio button
can perform a callback request.
</li>
+</ul>
+<h2 id="134001">Active Data Controls</h2>
+<ul id="u2" class="block-content">
<li>
- * <a href="?page=ActiveControls.ActiveRepeater">TActiveRepeater</a>
- is the active counterpart of TRepeater, which can be updated during a callback request
+ * <a href="?page=ActiveControls.ActiveDataList">TActiveDataList</a>
+ is used to display or modify a list of data items. It is the
+ active counterpart to the original TDataList control.
</li>
<li>
- * <a href="?page=ActiveControls.ActiveDataList">TActiveDataList</a>
- is the active counterpart of TDataList
+ * <a href="?page=ActiveControls.ActiveDataGrid">TActiveDataGrid</a>
+ displays data in a tabular format with rows and columns. It is the
+ active counterpart to the original TDataGrid control.
</li>
-
<li>
- * <a href="?page=ActiveControls.ActiveDataList">TActiveDataGrid</a>
- is the active counterpart of TDataGrid
+ * <a href="?page=ActiveControls.ActiveRepeater">TActiveRepeater</a>
+ displays its content defined in templates repeatedly based on the given data.
+ It is the active counterpart to the original TRepeater control.
</li>
-
</ul>
<h2 id="128034">Extended Active Controls</h2>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html new file mode 100644 index 00000000..3a319a1b --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html @@ -0,0 +1,8 @@ +<html>
+<head>
+<title>Hello World!</title>
+</head>
+<body>
+This is Hello World long description file!
+</body>
+</html>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page new file mode 100644 index 00000000..02cc3446 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page @@ -0,0 +1,20 @@ +<com:TContent ID="body">
+
+<h1>TActiveImage Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+<tt>ImageUrl</tt> being changed on callback request:
+</td><td class="sampleaction">
+<com:TActiveImage
+ ID="imageTest"
+ ImageUrl=<%~hello_world.gif%>
+ AlternateText="Hello World!"/>
+<com:TActiveButton OnCallback="buttonClicked" Text="First hello world image"/>
+<com:TActiveButton OnCallback="buttonClicked2" Text="Second hello world image"/>
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php new file mode 100644 index 00000000..3628ad0a --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php @@ -0,0 +1,17 @@ +<?php
+
+// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
+class Home extends TPage
+{
+ public function buttonClicked($sender, $param)
+ {
+ $this->imageTest->ImageUrl=$this->publishAsset("hello_world.gif");
+ }
+
+ public function buttonClicked2($sender, $param)
+ {
+ $this->imageTest->ImageUrl=$this->publishAsset("hello_world2.gif");
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif Binary files differnew file mode 100644 index 00000000..bc81443c --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif Binary files differnew file mode 100644 index 00000000..a8c73cf6 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page new file mode 100644 index 00000000..8277a8cb --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page @@ -0,0 +1,49 @@ +<com:TContent ID="body">
+
+<h1>TActiveImageButton Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+A click image button showing the click location:
+</td><td class="sampleaction">
+<com:TActiveImageButton
+ ImageUrl=<%~ hello_world.gif %>
+ Text="hello world"
+ OnClick="buttonClicked"
+ />
+<com:TActiveLabel ID="Result" />
+</td></tr>
+
+<tr><td class="samplenote">
+A callback image button:
+</td><td class="sampleaction">
+<com:TActiveImageButton
+ ImageUrl=<%~ hello_world.gif %>
+ Text="hello world"
+ OnCallback="buttonClicked"
+ ActiveControl.CallbackParameter="value"
+ />
+<com:TActiveLabel ID="Result2" />
+</td></tr>
+
+<tr><td class="samplenote">
+An image button causing validation:
+</td><td class="sampleaction">
+<com:TActiveTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ Display="Dynamic"
+ ErrorMessage="input required in the textbox"
+ ValidationGroup="Group"
+ />
+<com:TActiveImageButton
+ ImageUrl=<%~ hello_world.gif %>
+ Text="hello world"
+ ValidationGroup="Group"
+ />
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php new file mode 100644 index 00000000..b1f2c53b --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php @@ -0,0 +1,18 @@ +<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($param instanceof TCallbackEventParameter)
+ {
+ $this->Result2->Text="Callback parameter: $param->CallbackParameter";
+ }
+ else
+ {
+ $this->Result->Text="You clicked at ($param->X,$param->Y)";
+ }
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif Binary files differnew file mode 100644 index 00000000..bc81443c --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page new file mode 100644 index 00000000..a1e242d3 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page @@ -0,0 +1,34 @@ +<com:TContent ID="body">
+
+<h1>TActiveLabel Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+An active label text being set as the result of a callback:
+</td><td class="sampleaction">
+<com:TActiveLabel Text="This is a label" ID="label1"
+/>
+
+<com:TActiveButton
+ Text="click me"
+ OnClick="buttonClicked"
+/>
+</td></tr>
+
+<tr><td class="samplenote">
+Upon button click, the textbox contents will be set on the label. Note that text needs to be properly escaped to avoid html injections:
+</td><td class="sampleaction">
+<com:TActiveTextBox ID="txt2"
+/>
+<com:TActiveButton
+ Text="=>"
+ OnClick="buttonClicked2"
+/>
+<com:TActiveLabel Text="" ID="label2"
+/>
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php new file mode 100644 index 00000000..aa26fbe5 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php @@ -0,0 +1,16 @@ +<?php + +class Home extends TPage +{ + public function buttonClicked($sender,$param) + { + $this->label1->Text="You clicked the button, didn't you?"; + } + + public function buttonClicked2($sender,$param) + { + $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text); + } +} + +?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page new file mode 100644 index 00000000..0c896f64 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page @@ -0,0 +1,46 @@ +<com:TContent ID="body">
+
+<h1>TActiveLinkButton Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Link button with only body content:
+</td><td class="sampleaction">
+<com:TActiveLinkButton>
+body content
+</com:TActiveLinkButton>
+</td></tr>
+
+<tr><td class="samplenote">
+A click link button:
+</td><td class="sampleaction">
+<com:TActiveLinkButton Text="click me" OnClick="buttonClicked" />
+</td></tr>
+
+<tr><td class="samplenote">
+A callback link button:
+</td><td class="sampleaction">
+<com:TActiveLinkButton
+ Text="click me"
+ OnCallback="buttonClicked"
+ ActiveControl.CallbackParameter="value"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A button causing validation:
+</td><td class="sampleaction">
+<com:TTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ Display="Dynamic"
+ ErrorMessage="input required in the textbox"
+ ValidationGroup="Group"
+ />
+<com:TActiveLinkButton Text="submit" ValidationGroup="Group" />
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php new file mode 100644 index 00000000..64e2dede --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php @@ -0,0 +1,14 @@ +<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($param instanceof TCallbackEventParameter)
+ $sender->Text="Callback Parameter: {$param->CallbackParameter}";
+ else
+ $sender->Text="I'm clicked";
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page new file mode 100644 index 00000000..6888ad78 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page @@ -0,0 +1,37 @@ +<com:TContent ID="body">
+
+<h1>TActiveMultiView Samples</h1>
+
+<com:TActiveMultiView ID="MultiView" ActiveViewIndex="0" OnActiveViewChanged="viewChanged">
+ <com:TView ID="View1">
+ <h2>View 1</h2>
+ <p>Please enter a memo:</p>
+ <com:TActiveTextBox ID="Memo" />
+ <hr/>
+ <com:TActiveButton Text="View 2" CommandName="NextView" />
+ <com:TActiveButton Text="View 3" CommandName="SwitchViewIndex" ActiveControl.CallbackParameter="2" />
+ </com:TView>
+ <com:TView>
+ <h2>View 2</h2>
+ <p>Please choose a color:</p>
+ <com:TActiveDropDownList ID="DropDownList">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ </com:TActiveDropDownList>
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="PreviousView" />
+ <com:TActiveButton Text="View 3" CommandName="NextView" />
+ </com:TView>
+ <com:TView>
+ <h2>View 3</h2>
+ <com:TActiveLabel ID="Result1" />
+ <br/>
+ <com:TActiveLabel ID="Result2" />
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="SwitchViewID" ActiveControl.CallbackParameter="View1" />
+ <com:TActiveButton Text="View 2" CommandName="PreviousView" />
+ </com:TView>
+</com:TActiveMultiView>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php new file mode 100644 index 00000000..1a5dbed3 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php @@ -0,0 +1,15 @@ +<?php
+
+class Home extends TPage
+{
+ public function viewChanged($sender,$param)
+ {
+ if($this->MultiView->ActiveViewIndex===2)
+ {
+ $this->Result1->Text="Your text input is: ".$this->Memo->Text;
+ $this->Result2->Text="Your color choice is: ".$this->DropDownList->SelectedValue;
+ }
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page new file mode 100644 index 00000000..1fb7ca23 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page @@ -0,0 +1,24 @@ +<com:TContent ID="body">
+
+<h1>TActivePanel Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Active panel updated on callback:
+</td><td class="sampleaction">
+<com:TActivePanel ID="panel1" BackColor="#CCFFCC" DefaultButton="button1" Width="400px">
+This is panel content
+<br/>a checkbox: <com:TCheckBox ID="check1"/>
+<br/>a textbox: <com:TTextBox ID="txt1"/>
+<br/>a label: <com:TLabel ID="label1"/>
+<br/><com:TActiveButton ID="button1" Text="click me" OnCallback="buttonClicked" />
+<br/>
+When you press the button, the panel contents will change. Note that out of the
+panel and the button, all the other controls are not active but gets updated
+anyway since they are placed inside the active panel.
+</com:TActivePanel>
+</td></tr>
+</table>
+<com:TJavascriptLogger />
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php new file mode 100644 index 00000000..ae174f59 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php @@ -0,0 +1,21 @@ +<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->check1->Checked = !$this->check1->Checked;
+ if($this->txt1->Text=="")
+ $this->txt1->Text="changes happens";
+ else
+ $this->txt1->Text="";
+ if($this->label1->Text=="")
+ $this->label1->Text="label has changed, too";
+ else
+ $this->label1->Text="";
+
+ $this->panel1->render($param->NewWriter);
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page new file mode 100644 index 00000000..13b7853c --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page @@ -0,0 +1,82 @@ +<com:TContent ID="body">
+
+<h1>TActiveRadioButton Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+A callback radiobutton:
+</td><td class="sampleaction">
+<com:TActiveRadioButton
+ Text="click me"
+ OnCheckedChanged="radiobuttonClicked"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A radiobutton causing validation on a textbox:
+</td><td class="sampleaction">
+<com:TActiveTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ Display="Dynamic"
+ ErrorMessage="input required in the textbox"
+ ValidationGroup="Group"
+ />
+<com:TActiveRadioButton
+ Text="submit"
+ AutoPostBack="true"
+ ValidationGroup="Group"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A radiobutton validated by a required field validator:
+</td><td class="sampleaction">
+<com:TActiveRadioButton
+ ID="RadioButton"
+ Text="Consent"
+ ValidationGroup="Group2"
+ />
+<com:TActiveButton Text="Submit" ValidationGroup="Group2" />
+<com:TRequiredFieldValidator
+ ControlToValidate="RadioButton"
+ Display="Dynamic"
+ ErrorMessage="You must consent."
+ ValidationGroup="Group2"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A radiobutton group:
+</td><td class="sampleaction">
+<com:TActiveRadioButton
+ ID="Radio1"
+ GroupName="RadioGroup"
+ Text="Option 1"
+ OnCallback="selectRadioButton"
+ />
+<com:TActiveRadioButton
+ ID="Radio2"
+ GroupName="RadioGroup"
+ Text="Option 2"
+ OnCallback="selectRadioButton"
+ />
+<com:TActiveRadioButton
+ ID="Radio3"
+ GroupName="RadioGroup"
+ Text="Option 3"
+ OnCallback="selectRadioButton"
+ />
+<com:TActiveRadioButton
+ ID="Radio4"
+ Text="Option 4 (in a different group)"
+ OnCallback="selectRadioButton"
+ />
+<br/>
+<com:TActiveLabel ID="Result" />
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php new file mode 100644 index 00000000..034d2fcc --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php @@ -0,0 +1,27 @@ +<?php
+
+class Home extends TPage
+{
+ public function radiobuttonClicked($sender,$param)
+ {
+ $sender->Text="I'm clicked";
+ }
+
+ public function selectRadioButton($sender,$param)
+ {
+ $selection='';
+ if($this->Radio1->Checked)
+ $selection.='1';
+ if($this->Radio2->Checked)
+ $selection.='2';
+ if($this->Radio3->Checked)
+ $selection.='3';
+ if($this->Radio4->Checked)
+ $selection.='4';
+ if($selection==='')
+ $selection='empty';
+ $this->Result->Text='Your selection is '.$selection;
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page new file mode 100644 index 00000000..b4ea8afc --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page @@ -0,0 +1,31 @@ +<com:TContent ID="body">
+
+<h1>TActiveTextBox Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+An active textbox being set as the result of a callback:
+</td><td class="sampleaction">
+<com:TActiveTextBox Text="Sample content" ID="txt1"
+/>
+
+<com:TActiveButton
+ Text="click me"
+ OnClick="buttonClicked"
+/>
+</td></tr>
+
+<tr><td class="samplenote">
+An active textbox with AutoPostBack="true"; Pressing Enter/Return, the textbox contents will be set on the label.
+Note that text needs to be properly escaped to avoid html injections:
+</td><td class="sampleaction">
+<com:TActiveTextBox ID="txt2" AutoPostBack="true" OnTextChanged="textChanged"
+/>
+<com:TActiveLabel Text="" ID="label2"
+/>
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id: Home.page 2946 2011-06-01 21:01:57Z ctrlaltca@gmail.com $</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php new file mode 100644 index 00000000..1993b78d --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php @@ -0,0 +1,16 @@ +<?php + +class Home extends TPage +{ + public function buttonClicked($sender,$param) + { + $this->txt1->Text="You clicked the button, didn't you?"; + } + + public function textChanged($sender,$param) + { + $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text); + } +} + +?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/ColorPicker.page b/demos/quickstart/protected/pages/Controls/ColorPicker.page index cc931840..57c39857 100644 --- a/demos/quickstart/protected/pages/Controls/ColorPicker.page +++ b/demos/quickstart/protected/pages/Controls/ColorPicker.page @@ -3,8 +3,33 @@ <h1 id="2201">TColorPicker</h1>
<com:DocLink ClassPath="System.Web.UI.WebControls.TColorPicker" />
-<p id="270244" class="block-content">
-TBD
+<p class="block-content">
+<tt>TColorPicker</tt> displays a text box for color input purpose.
+Next to the textbox there's a button filled with the current chosen color.
+Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF).
+<br/>Alternatively, if the <tt>ShowColorPicker</tt> property is enabled (it is by default), users can click the button
+to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker.
</p>
+<p class="block-content">
+TColorPicker has three different color picker UI <tt>Mode</tt>s:</p>
+ <ul id="u1" class="block-content">
+ <li><tt>Simple</tt> - Grid with 12 simple colors.</li>
+ <li><tt>Basic</tt> - Grid with the most common 70 colors. This is the default mode.</li>
+ <li><tt>Full</tt> - Full-featured color picker.</li>
+ </ul>
+
+<p class="block-content">The <tt>CssClass</tt> property can be used to override the CSS class name
+for the color picker panel. The <tt>ColorStyle</tt> property changes the overall color picker style.
+The following <tt>ColorStyle</tt> values are available:</p>
+ <ul id="u2" class="block-content">
+ <li><tt>default</tt> - The default color picker style.</li>
+ </ul>
+
+<p class="block-content">If the <tt>Mode</tt> property is set to <tt>Full</tt>, the color picker panel will
+display an "Ok" and "Cancel" buttons. You can customize the button labels setting the <tt>OKButtonText</tt>
+and <tt>CancelButtonText</tt> properties.</p>
+
+<com:RunBar PagePath="Controls.Samples.TColorPicker.Home" />
+
<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Head.page b/demos/quickstart/protected/pages/Controls/Head.page index 7e4a19ec..594bb069 100644 --- a/demos/quickstart/protected/pages/Controls/Head.page +++ b/demos/quickstart/protected/pages/Controls/Head.page @@ -4,7 +4,39 @@ <com:DocLink ClassPath="System.Web.UI.WebControls.THead" />
<p id="310261" class="block-content">
-TBD
+<tt>THead</tt> displays a head element on a page. It displays the content
+enclosed in its body and the page title set by the <tt>Title</tt> property.
+</p>
+
+<p class="block-content">
+In addition, stylesheets and JavaScripts registered via
+<ul>
+ <li><tt>TClientScriptManager::registerStyleSheet</tt>,</li>
+ <li><tt>TClientScriptManager::registerStyleSheetFile</tt>,</li>
+ <li><tt>TClientScriptManager::registerHeadJavaScript</tt> and</li>
+ <li><tt>TClientScriptManager::registerHeadJavaScriptFile</tt></li>
+</ul>
+will also be displayed in the head.</p>
+
+<p class="block-content">
+THead also manages and displays meta tags through its <tt>MetaTags</tt>
+property. You can add a meta object to the collection in code dynamically,
+or add it in template using the following syntax
+</p>
+
+<com:TTextHighlighter Language="text" CssClass="source block-content">
+<com:THead>
+ <com:TMetaTag HttpEquiv="Pragma" Content="no-cache" />
+ <com:TMetaTag Name="keywords" Content="Prado" />
+</com:THead>
+</com:TTextHighlighter>
+
+<p class="block-content">
+Note, <tt>TPage</tt> has a property <tt>Head</tt> that refers to
+the <tt>THead</tt> control currently on the page. A page can have at most one <tt>THead</tt>
+control. Although not required, it is recommended to place a <tt>THead</tt> on your page.
+Without a <tt>THead</tt> on the page, stylesheets and javascripts in the current page
+theme will not be rendered.
</p>
<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page new file mode 100644 index 00000000..0a1f3705 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page @@ -0,0 +1,37 @@ +<com:TContent ID="body">
+
+<h1>TColorPicker Samples</h1>
+
+<table class="sampletable">
+
+<tr>
+ <td class="samplenote">Default TColorPicker, Mode="Basic"</td>
+ <td class="sampleaction">
+ <com:TColorPicker />
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">Mode="Simple"<br />pre-selected red color</td>
+ <td class="sampleaction">
+ <com:TColorPicker Mode="Simple" Text="#FF0000"/>
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">Mode="Full"</td>
+ <td class="sampleaction">
+ <com:TColorPicker Mode="Full"/>
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">Disabled color picker panel: ShowColorPicker="false"</td>
+ <td class="sampleaction">
+ <com:TColorPicker ShowColorPicker="false"/>
+ </td>
+</tr>
+
+</table>
+
+<div class="last-modified">$Id: Home.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index 3b6079d6..9fde5a29 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -23,7 +23,7 @@ <a href="?page=Controls.ClientScriptLoader">TClientScriptLoader</a> loads custom javascript libraries.
</li>
- <li>*
+ <li>
<a href="?page=Controls.ColorPicker">TColorPicker</a> represents an input field taking color values via a color dialog.
</li>
@@ -43,7 +43,7 @@ <a href="?page=Controls.FileUpload">TFileUpload</a> represents a file upload field. It allows users to upload a file to server.
</li>
- <li>*
+ <li>
<a href="?page=Controls.Head">THead</a> represents the <head> element on an HTML Web page. It is required by a PRADO page should it use themes.
</li>
diff --git a/framework/Web/UI/ActiveControls/TActiveImageButton.php b/framework/Web/UI/ActiveControls/TActiveImageButton.php index f8cd6e12..4e7b5149 100644 --- a/framework/Web/UI/ActiveControls/TActiveImageButton.php +++ b/framework/Web/UI/ActiveControls/TActiveImageButton.php @@ -13,7 +13,7 @@ /** * TActiveImageButton class. * - * TActiveImageButton is the active control counter part to TLinkButton. + * TActiveImageButton is the active control counter part to TImageButton. * When a TActiveImageButton is clicked, rather than a normal post back request a * callback request is initiated. * diff --git a/framework/Web/UI/ActiveControls/TActiveTextBox.php b/framework/Web/UI/ActiveControls/TActiveTextBox.php index 97efe008..63f5e191 100644 --- a/framework/Web/UI/ActiveControls/TActiveTextBox.php +++ b/framework/Web/UI/ActiveControls/TActiveTextBox.php @@ -4,7 +4,7 @@ *
* @author Wei Zhuo <weizhuo[at]gamil[dot]com>
* @link http://www.pradosoft.com/
- * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Web.UI.ActiveControls
@@ -21,7 +21,7 @@ Prado::using('System.Web.UI.ActiveControls.TActiveControlAdapter'); * TActiveTextBox allows the {@link setText Text} property of the textbox to
* be changed during callback. When {@link setAutoPostBack AutoPostBack} property
* is true, changes to the textbox contents will perform a callback request causing
- * {@link onTextChanged OnTextChange} to be fired first followed by {@link onCallback OnCallback}
+ * {@link onTextChanged OnTextChanged} to be fired first followed by {@link onCallback OnCallback}
* event.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
diff --git a/framework/Web/UI/WebControls/TColorPicker.php b/framework/Web/UI/WebControls/TColorPicker.php index 0fc7eef4..1066bf76 100644 --- a/framework/Web/UI/WebControls/TColorPicker.php +++ b/framework/Web/UI/WebControls/TColorPicker.php @@ -13,8 +13,25 @@ /**
* TColorPicker class.
*
- * Be aware, this control is EXPERIMENTAL and is not stablized yet.
+ * TColorPicker displays a text box for color input purpose.
+ * Next to the textbox there's a button filled with the current chosen color.
+ * Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF).
+ * Alternatively, if the <b>ShowColorPicker</b> property is enabled (it is by default), users can click the button
+ * to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker.
*
+ * TColorPicker has three different color picker UI <b>Mode</b>s:
+ * # <b>Simple</b> - Grid with 12 simple colors.
+ * # <b>Basic</b> - Grid with the most common 70 colors. This is the default mode.
+ * # <b>Full</b> - Full-featured color picker.
+ *
+ * The <b>CssClass</b> property can be used to override the CSS class name
+ * for the color picker panel. The <b>ColorStyle</b> property sets the packages
+ * styles available. E.g. <b>default</b>.
+ *
+ * If the <b>Mode</b> property is set to <b>Full</b>, the color picker panel will
+ * display an "Ok" and "Cancel" buttons. You can customize the button labels setting the <b>OKButtonText</b>
+ * and <b>CancelButtonText</b> properties.
+ *
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @version $Id$
* @package System.Web.UI.WebControls
@@ -226,9 +243,9 @@ class TColorPicker extends TTextBox * that a {@link TColorPicker} control can take.
*
* The following enumerable values are defined:
- * - Simple
- * - Basic
- * - Full
+ * # Simple - Grid with 12 simple colors.
+ * # Basic - Grid with the most common 70 colors. This is the default mode.
+ * # Full - Full-featured color picker.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Id$
diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index 1bac5a1c..5d5a17e6 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -56,7 +56,7 @@ Prado::using('System.Web.UI.WebControls.TTextBox'); *
* The <b>InputMode</b> property can be set to "TextBox" or "DropDownList" with
* default as "TextBox".
- * In <tt>DropDownList</tt> mode, in addition to the popup date picker, three
+ * In <b>DropDownList</b> mode, in addition to the popup date picker, three
* drop down list (day, month and year) are presented to select the date .
*
* The <b>PositionMode</b> property can be set to "Top" or "Bottom" with default
diff --git a/framework/Web/UI/WebControls/THead.php b/framework/Web/UI/WebControls/THead.php index 36b81648..9daa6d3b 100644 --- a/framework/Web/UI/WebControls/THead.php +++ b/framework/Web/UI/WebControls/THead.php @@ -31,7 +31,7 @@ * </code>
*
* Note, {@link TPage} has a property {@link TPage::getHead Head} that refers to
- * the THead control currently on the page. A page can have at most once THead
+ * the THead control currently on the page. A page can have at most one THead
* control. Although not required, it is recommended to place a THead on your page.
* Without a THead on the page, stylesheets and javascripts in the current page
* theme will not be rendered.
|