diff options
author | ctrlaltca@gmail.com <> | 2011-06-01 20:35:06 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-01 20:35:06 +0000 |
commit | 78d82290a076ea1da6da7f8a5bd0297eb7584db5 (patch) | |
tree | 28669965bbbf4900c4227a921dd4ef9281188fa0 /demos/quickstart | |
parent | 8ce0a1d0f2b67eaf998aca58913cf87652b4b0d5 (diff) |
added documentation for TActiveImage class
Diffstat (limited to 'demos/quickstart')
7 files changed, 62 insertions, 1 deletions
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/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index 62d79cb8..2b6fdac2 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -43,7 +43,7 @@ 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>
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 |