summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-04-01 17:31:28 +0000
committerxue <>2006-04-01 17:31:28 +0000
commit0a12bef112fe6a1569531e40b7cc063b0f52f44c (patch)
tree9e6049c48a9008081cb124153392fc21a24aad44
parentaf7a742944cc2d515cac1fcd22363483827c36b3 (diff)
Added THiddenField and THtmlArea demos.
-rw-r--r--.gitattributes2
-rw-r--r--HISTORY1
-rw-r--r--UPGRADE1
-rw-r--r--demos/quickstart/protected/pages/Controls/HiddenField.page5
-rw-r--r--demos/quickstart/protected/pages/Controls/HtmlArea.page43
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page42
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php21
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page4
-rw-r--r--demos/quickstart/protected/pages/Controls/Standard.page8
9 files changed, 119 insertions, 8 deletions
diff --git a/.gitattributes b/.gitattributes
index fd24bc45..66ceb15b 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -186,6 +186,8 @@ demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.php -text
demos/quickstart/protected/pages/Controls/Samples/TEmailAddressValidator/Home.page -text
demos/quickstart/protected/pages/Controls/Samples/TEmailAddressValidator/Home.php -text
demos/quickstart/protected/pages/Controls/Samples/TExpression/Home.page -text
+demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page -text
+demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php -text
demos/quickstart/protected/pages/Controls/Samples/THyperLink/Home.page -text
demos/quickstart/protected/pages/Controls/Samples/THyperLink/hello_world.gif -text
demos/quickstart/protected/pages/Controls/Samples/TImage/HelloWorld.html -text
diff --git a/HISTORY b/HISTORY
index f82161d4..cef310c4 100644
--- a/HISTORY
+++ b/HISTORY
@@ -12,6 +12,7 @@ BUG: THttpSession fails when user storage module is used (Qiang)
CHG: TTextHighlighter.EnableCopyCode defaults to false (Qiang)
CHG: Reorganized quickstart tutorial demo, added new sections (Qiang)
CHG: Reorganized folders under framework (Qiang)
+CHG: Modified THtmlArea default toolbar and size. (Qiang)
ENH: Ticket#92 - Support for user exception message file (Qiang)
ENH: Ticket#106 - Support for validation on THiddenField (Qiang)
ENH: TDataFieldAccessor can access public class variables (Qiang)
diff --git a/UPGRADE b/UPGRADE
index fc721275..755a475a 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -14,6 +14,7 @@ Upgrading from v3.0b
- Pagers in TDataGrid are now enclosed within panels. The event indicating
their creation is changed to OnPagerCreated instead of OnItemCreated.
- TTextHighlighter.EnableCopyCode defaults to false now.
+- THtmlArea default toolbar and size are modified.
- TTarFileExtrator is moved to System.IO
Cache classes are moved to System.Caching
TXmlDocument is moved to System.Xml
diff --git a/demos/quickstart/protected/pages/Controls/HiddenField.page b/demos/quickstart/protected/pages/Controls/HiddenField.page
index 8b04d928..c068d01b 100644
--- a/demos/quickstart/protected/pages/Controls/HiddenField.page
+++ b/demos/quickstart/protected/pages/Controls/HiddenField.page
@@ -4,7 +4,10 @@
<com:DocLink ClassPath="System.Web.UI.WebControls.THiddenField" />
<p>
-TBD
+<tt>THiddenField</tt> represents a hidden field on a Web page. The value of the hidden field can be accessed via its <tt>Value</tt> property.
+</p>
+<p>
+<tt>THiddenField</tt> raises an <tt>OnValueChanged</tt> event if its value is changed during postback.
</p>
</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/HtmlArea.page b/demos/quickstart/protected/pages/Controls/HtmlArea.page
index 992f417e..9f96f404 100644
--- a/demos/quickstart/protected/pages/Controls/HtmlArea.page
+++ b/demos/quickstart/protected/pages/Controls/HtmlArea.page
@@ -3,5 +3,48 @@
<h1>THtmlArea</h1>
<com:DocLink ClassPath="System.Web.UI.WebControls.THtmlArea" />
+<p>
+<tt>THtmlArea</tt> displays a WYSIWYG text input field on a Web page to collect input in HTML format. The text displayed in the <tt>THtmlArea</tt> control is specified or determined by using the <tt>Text</tt> property. To adjust the size of the input region, set <tt>Width</tt> and <tt>Height</tt> properties instead of <tt>Columns</tt> and <tt>Rows</tt> because the latter has no meaning under this situation. To disable the WYSIWYG feature, set <tt>EnableVisualEdit</tt> to false.
+</p>
+
+<p>
+<tt>THtmlArea</tt> provides the WYSIWYG feature by wrapping the functionalities provided by the <a href="http://tinymce.moxiecode.com/">TinyMCE project</a>.
+</p>
+
+<p>
+The default editor gives only the basic tool bar. To change or add additional tool bars, use the <tt>Options</tt> property to add additional editor options with each options on a new line. See <a href="http://tinymce.moxiecode.com/tinymce/docs/index.html">TinyMCE website</a> for a complete list of options. The following example displays a toolbar specific for HTML table manipulation,
+</p>
+<com:TTextHighlighter Language="prado" CssClass="source">
+&lt;com:THtmlArea&gt;
+ &lt;prop:Options&gt;
+ plugins : "table"
+ theme_advanced_buttons3 : "tablecontrols"
+ &lt;/prop:Options&gt;
+&lt;/com:THtmlArea&gt;
+</com:TTextHighlighter>
+
+<p>
+The client-side visual editting capability is supported by Internet Explorer 5.0+ for Windows and Gecko-based browser. If the browser does not support the visual editting, a traditional textarea will be displayed.
+</p>
+
+<pre>
+<code>
+ Windows XP MacOS X 10.4
+----------------------------------------------------
+MSIE 6 OK
+MSIE 5.5 SP2 OK
+MSIE 5.0 OK
+Mozilla 1.7.x OK OK
+Firefox 1.0.x OK OK
+Firefox 1.5b2 OK OK
+Safari 2.0 (412) OK(1)
+Opera 9 Preview 1 OK(1) OK(1)
+----------------------------------------------------
+(1) - Partialy working
+----------------------------------------------------
+</code>
+</pre>
+
+<com:RunBar PagePath="Controls.Samples.THtmlArea.Home" />
</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page
new file mode 100644
index 00000000..71343e64
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page
@@ -0,0 +1,42 @@
+<com:TContent ID="body">
+
+<h1>THtmlArea Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+THtmlArea with default settings:
+</td><td class="sampleaction">
+<com:THtmlArea ID="HtmlArea1" />
+<com:TButton Text="Submit" OnClick="button1Clicked" />
+<br/>
+<com:TLiteral Encode="true" ID="Result1" />
+</td></tr>
+
+<tr><td class="samplenote">
+THtmlArea with customized size and table toolbar:
+</td><td class="sampleaction">
+<com:THtmlArea ID="HtmlArea2" Width="500px" Height="250px">
+ <prop:Options>
+ plugins : "table"
+ theme_advanced_buttons3 : "tablecontrols"
+ </prop:Options>
+</com:THtmlArea>
+<com:TButton Text="Submit" OnClick="button2Clicked" />
+<br/>
+<com:TLiteral Encode="true" ID="Result2" />
+</td></tr>
+
+<tr><td class="samplenote">
+THtmlArea with visual editting disabled:
+</td><td class="sampleaction">
+<com:THtmlArea ID="HtmlArea3" EnableVisualEdit="false" />
+<br/>
+<com:TButton Text="Submit" OnClick="button3Clicked" />
+<br/>
+<com:TLiteral Encode="true" ID="Result3" />
+</td></tr>
+
+</table>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php
new file mode 100644
index 00000000..c56b5229
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php
@@ -0,0 +1,21 @@
+<?php
+
+class Home extends TPage
+{
+ public function button1Clicked($sender,$param)
+ {
+ $this->Result1->Text="You have entered: ".$this->HtmlArea1->Text;
+ }
+
+ public function button2Clicked($sender,$param)
+ {
+ $this->Result2->Text="You have entered: ".$this->HtmlArea2->Text;
+ }
+
+ public function button3Clicked($sender,$param)
+ {
+ $this->Result3->Text="You have entered: ".$this->HtmlArea3->Text;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
index bf291456..a75c3dd2 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
@@ -25,9 +25,7 @@
<com:TRectangleHotSpot
HotspotMode="PostBack"
PostBackValue="Welcome!"
- CausesValidation="true"
- ValidationGroup="Group1"
- AlternateText="Button 2"
+ AlternateText="Postback button"
Top="52"
Left="172"
Bottom="259"
diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page
index d2b36d1c..2b2eaf29 100644
--- a/demos/quickstart/protected/pages/Controls/Standard.page
+++ b/demos/quickstart/protected/pages/Controls/Standard.page
@@ -27,15 +27,15 @@
<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 &lt;head&gt; element on an HTML Web page. It is required by a PRADO page should it use themes.
</li>
- <li>*
+ <li>
<a href="?page=Controls.HiddenField">THiddenField</a> represents a hidden input field on a Web page.
</li>
- <li>*
+ <li>
<a href="?page=Controls.HtmlArea">THtmlArea</a> represents a WYSIWYG text input field taking user input that are in HTML format.
</li>
@@ -75,7 +75,7 @@
<a href="?page=Controls.Literal">TLiteral</a> represents a static text without any HTML tag surrounding it on a Web page.
</li>
- <li>
+ <li>*
<a href="?page=Controls.MultiView">TMultiView</a> represents a container for a group of <tt>TView</tt> controls, each of which is container for other controls. At any time, at most one <tt>TView</tt> is visible.
</li>