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 +++++++++++ demos/quickstart/protected/pages/Controls/Simple.page | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.php (limited to 'demos/quickstart') 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 diff --git a/demos/quickstart/protected/pages/Controls/Simple.page b/demos/quickstart/protected/pages/Controls/Simple.page index 2f0dc2f9..7ee79ac0 100644 --- a/demos/quickstart/protected/pages/Controls/Simple.page +++ b/demos/quickstart/protected/pages/Controls/Simple.page @@ -14,7 +14,7 @@

TPanel

-TPanel +TPanel acts as a presentational container for other control. It displays a <div> element on a page. The property Wrap specifies whether the panel's body content should wrap or not, while HorizontalAlign governs how the content is aligned horizontally and Direction indicates the content direction (left to right or right to left). You can set BackImageUrl to give a background image to the panel, and you can ste GroupingText so that the panel is displayed as a field set with a legend text. Finally, you can specify a default button to be fired when users press 'return' key within the panel by setting the DefaultButton property.

-- cgit v1.2.3