From 45c32f4610b9988e0ebed87674388268ac96ae1f Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 20:48:19 +0000 Subject: added documentation for TActiveImageButton class --- .../pages/ActiveControls/ActiveImageButton.page | 17 +++++++ .../protected/pages/ActiveControls/Home.page | 2 +- .../Samples/TActiveImageButton/Home.page | 49 +++++++++++++++++++++ .../Samples/TActiveImageButton/Home.php | 18 ++++++++ .../Samples/TActiveImageButton/hello_world.gif | Bin 0 -> 1602 bytes 5 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page new file mode 100644 index 00000000..44b988dd --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page @@ -0,0 +1,17 @@ + + +

TActiveImageButton

+ + +

+TActiveImageButton is the active counterpart of TImageButton. +When a TActiveImageButton is clicked, rather than a normal post back request a callback request is initiated. +TheOnCallback event is raised during a callback request and it is raised after the OnClick event. +

+ +

+TActiveImageButton is similar to TActiveButton, except that TActiveImageButton displays the button as an image. The image is specified via ImageUrl, and the alternate text is specified by Text. In addition, it is possible to obtain the coordinate of the point where the image is clicked. The coordinate information is contained in the event parameter of the OnClick event (not OnCallback). +

+ + +
$Id$
\ 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 2b6fdac2..0490733b 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -48,7 +48,7 @@ TActiveButton control. See also the later part of the TActiveImageButton + TActiveImageButton represents a click button that has an image as the background. It is can be used to trigger a callback request. diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page new file mode 100644 index 00000000..8277a8cb --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page @@ -0,0 +1,49 @@ + + +

TActiveImageButton Samples

+ + + + + + + + + +
+A click image button showing the click location: + + + Text="hello world" + OnClick="buttonClicked" + /> + +
+A callback image button: + + + Text="hello world" + OnCallback="buttonClicked" + ActiveControl.CallbackParameter="value" + /> + +
+An image button causing validation: + + + + + Text="hello world" + ValidationGroup="Group" + /> +
+ +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php new file mode 100644 index 00000000..b1f2c53b --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php @@ -0,0 +1,18 @@ +Result2->Text="Callback parameter: $param->CallbackParameter"; + } + else + { + $this->Result->Text="You clicked at ($param->X,$param->Y)"; + } + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif new file mode 100644 index 00000000..bc81443c Binary files /dev/null and b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif differ -- cgit v1.2.3