diff options
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TImageMap')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page | 42 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.php | 11 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif | bin | 0 -> 3563 bytes |
3 files changed, 53 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 Binary files differnew file mode 100644 index 00000000..dec647b1 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif |