From 585c7308803c0ae51d5355d1712b0e3beb0a6bdf Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 31 Dec 2005 15:49:32 +0000 Subject: Added TPanel default button sample. --- .../protected/pages/Controls/Samples/TPanel/Home.page | 15 +++++++++++++++ .../protected/pages/Controls/Samples/TPanel/Home.php | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.php (limited to 'demos/quickstart/protected/pages/Controls/Samples') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page index 7e5e8bcb..785e7ba4 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page @@ -51,6 +51,21 @@ This is panel content with a . + +Panel with a default button (hit 'enter' key to see what happened): + + +This is panel content with a +and two buttons:
+ + + +
+When you change focus to the panel and hit 'enter' key, button2 +will be clicked because it is set as the default button of the panel. +
+ + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.php new file mode 100644 index 00000000..d6cf1bd5 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.php @@ -0,0 +1,11 @@ +Result->Text="You have clicked on '$sender->Text'."; + } +} + +?> \ No newline at end of file -- cgit v1.2.3