From c69097235248a906923c846bf479b88965b3ddb7 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 21 Jan 2006 22:45:58 +0000 Subject: Add TImageButton demos. --- .../pages/Controls/Samples/TImageButton/Home.page | 50 +++++++++++++++++++++ .../pages/Controls/Samples/TImageButton/Home.php | 18 ++++++++ .../Controls/Samples/TImageButton/hello_world.gif | Bin 0 -> 1602 bytes 3 files changed, 68 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.php create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TImageButton/hello_world.gif (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.page new file mode 100644 index 00000000..e47eea73 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.page @@ -0,0 +1,50 @@ + + +

TImageButton Samples

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