From b6e539162ea75250932b83def2c28d00041f96af Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 31 Mar 2006 22:13:53 +0000 Subject: Added TImageMap and TInlineFrame demos. --- .gitattributes | 4 ++ HISTORY | 1 + UPGRADE | 4 ++ .../protected/pages/Controls/ImageMap.page | 19 ++++++++++ .../protected/pages/Controls/InlineFrame.page | 18 +++++++++ .../pages/Controls/Samples/TImageMap/Home.page | 42 +++++++++++++++++++++ .../pages/Controls/Samples/TImageMap/Home.php | 11 ++++++ .../pages/Controls/Samples/TImageMap/hotspots.gif | Bin 0 -> 3563 bytes .../pages/Controls/Samples/TInlineFrame/Home.page | 34 +++++++++++++++++ .../protected/pages/Controls/Standard.page | 4 +- 10 files changed, 135 insertions(+), 2 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.php create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TInlineFrame/Home.page diff --git a/.gitattributes b/.gitattributes index 67d16d38..fd24bc45 100644 --- a/.gitattributes +++ b/.gitattributes @@ -194,6 +194,10 @@ demos/quickstart/protected/pages/Controls/Samples/TImage/hello_world.gif -text demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TImageButton/hello_world.gif -text +demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page -text +demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.php -text +demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif -text +demos/quickstart/protected/pages/Controls/Samples/TInlineFrame/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TLabel/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.php -text diff --git a/HISTORY b/HISTORY index 89912f1e..f82161d4 100644 --- a/HISTORY +++ b/HISTORY @@ -11,6 +11,7 @@ BUG: SF#1432624 - Incorrect documentation about caching expiry (Qiang) 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) 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 2bfc8c53..fc721275 100644 --- a/UPGRADE +++ b/UPGRADE @@ -14,6 +14,10 @@ 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. +- TTarFileExtrator is moved to System.IO + Cache classes are moved to System.Caching + TXmlDocument is moved to System.Xml + TLogger, TLogRouter, TDataFieldAccessor, TSimpleDateFormatter are moved to System.Util Upgrading from v3.0a -------------------- diff --git a/demos/quickstart/protected/pages/Controls/ImageMap.page b/demos/quickstart/protected/pages/Controls/ImageMap.page index 0d7d65b1..997faad6 100644 --- a/demos/quickstart/protected/pages/Controls/ImageMap.page +++ b/demos/quickstart/protected/pages/Controls/ImageMap.page @@ -3,4 +3,23 @@

TImageMap

+

+TImageMap represents an image on a Web page with predefined hotspot regions that can respond differently to users' clicks on them. Depending on the HotSpotMode of the hotspot region, clicking on the hotspot may trigger a postback or navigate to a specified URL. +

+

+Each hotspot is described using a THotSpot object and is maintained in the HotSpots collection in TImageMap. A hotspot can be a circle, rectangle, polygon, etc. +

+

+Hotspots can be added to TImageMap via its HotSpots property or in a template like the following, +

+ +<com:TImageMap ... > + <com:TCircleHotSpot ... /> + <com:TRectangleHotSpot ... /> + <com:TPolygonHotSpot ... /> +</com:TImageMap> + + + + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/InlineFrame.page b/demos/quickstart/protected/pages/Controls/InlineFrame.page index ea89a690..56e3f382 100644 --- a/demos/quickstart/protected/pages/Controls/InlineFrame.page +++ b/demos/quickstart/protected/pages/Controls/InlineFrame.page @@ -3,4 +3,22 @@

TInlineFrame

+

+TInlineFrame displays an inline frame (<iframe>) on a Web page. The location of the frame content is specified by the FrameUrl property. +

+

+The appearance of a TInlineFrame may be customized with the following properties, in addition to those inherited from TWebControl. +

+
    +
  • Align - the alignment of the frame.
  • +
  • DescriptionUrl - the URI of a long description of the frame's contents.
  • +
  • MarginWidth and MarginHeight - the number of pixels to use as the left/right margins and top/bottom margins, respectively.
  • +
  • ScrollBars - whether scrollbars are provided for the inline frame. By default, it is Auto, meaning the scroll bars appear as needed. Setting it as None or Both to explicitly hide or show the scroll bars.
  • +
+ +

+The following samples show TInlineFrame with different property settings. The Google homepage is used as the frame content. +

+ + \ 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 new file mode 100644 index 00000000..bf291456 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page @@ -0,0 +1,42 @@ + + +

TImageMap Sample

+ + + AlternateText="navigate buttons" + OnClick="buttonClicked" > + + + + + + + + + +
+ + + +
\ 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 @@ +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 Binary files /dev/null and b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/hotspots.gif 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 @@ + + +

TInlineFrame Samples

+ + + + + + + + + +
+Inline frame with default settings: + + +
+Inline frame customized with margins and align: + + +
+Inline frame without scrollbars and border: + + +
+ +
\ 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 026d3d1a..d2b36d1c 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -51,11 +51,11 @@ TImageButton represents a click button that has an image as the background. It is mainly used to trigger page postback. -
  • * +
  • TImageMap represents an image on a Web page with clickable hotspot regions.
  • -
  • * +
  • TInlineFrame represents an <iframe> HTML element on a Web page.
  • -- cgit v1.2.3