summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
authorxue <>2006-03-31 22:13:53 +0000
committerxue <>2006-03-31 22:13:53 +0000
commitb6e539162ea75250932b83def2c28d00041f96af (patch)
tree12774c4f1f5f8c8dc1f2b8081498e0f6b85a515f /demos/quickstart/protected/pages/Controls/Samples
parentcc9fdb6054c896b10ceaab73059e55031ae44d29 (diff)
Added TImageMap and TInlineFrame demos.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page42
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.php11
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gifbin0 -> 3563 bytes
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TInlineFrame/Home.page34
4 files changed, 87 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
new file mode 100644
index 00000000..bf291456
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
@@ -0,0 +1,42 @@
+<com:TContent ID="body">
+
+<h1>TImageMap Sample</h1>
+
+<com:TImageMap
+ ImageUrl=<%~hotspots.gif%>
+ AlternateText="navigate buttons"
+ OnClick="buttonClicked" >
+
+<com:TCircleHotSpot
+ HotspotMode="Navigate"
+ NavigateUrl="http://www.pradosoft.com"
+ AlternateText="Navigate to pradosoft.com"
+ Target="_blank"
+ X="80"
+ Y="80"
+ Radius="55" />
+
+<com:TPolygonHotSpot
+ HotspotMode="Inactive"
+ AlternateText="Inactive area"
+ Coordinates="200,137,255,95,313,137,291,204,219,204"
+ />
+
+<com:TRectangleHotSpot
+ HotspotMode="PostBack"
+ PostBackValue="Welcome!"
+ CausesValidation="true"
+ ValidationGroup="Group1"
+ AlternateText="Button 2"
+ Top="52"
+ Left="172"
+ Bottom="259"
+ Right="339" />
+
+</com:TImageMap>
+
+<br/>
+
+<com:TLabel ID="Result" />
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.php
new file mode 100644
index 00000000..b8e17941
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.php
@@ -0,0 +1,11 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->Result->Text="Your post value is : ".$param->PostBackValue;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif
new file mode 100644
index 00000000..dec647b1
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif
Binary files differ
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TInlineFrame/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TInlineFrame/Home.page
new file mode 100644
index 00000000..90f3f5a1
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TInlineFrame/Home.page
@@ -0,0 +1,34 @@
+<com:TContent ID="body">
+
+<h1>TInlineFrame Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Inline frame with default settings:
+</td><td class="sampleaction">
+<com:TInlineFrame FrameUrl="http://www.google.com/" />
+</td></tr>
+
+<tr><td class="samplenote">
+Inline frame customized with margins and align:
+</td><td class="sampleaction">
+<com:TInlineFrame
+ MarginWidth="100"
+ MarginHeight="100"
+ Align="Right"
+ FrameUrl="http://www.google.com/" />
+</td></tr>
+
+<tr><td class="samplenote">
+Inline frame without scrollbars and border:
+</td><td class="sampleaction">
+<com:TInlineFrame
+ ScrollBars="None"
+ ShowBorder="false"
+ FrameUrl="http://www.google.com/" />
+</td></tr>
+
+</table>
+
+</com:TContent> \ No newline at end of file