From 94e49ca4633600269831c4e80af25ddcfa3a8258 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 29 Dec 2005 19:58:07 +0000 Subject: Added TTextBox demos. --- .../protected/controls/Highlighter/geshi/prado.php | 21 ++++-- .../protected/pages/Controls/Samples/Label.page | 23 ++++-- .../protected/pages/Controls/Samples/TextBox.page | 81 ++++++++++++++++++++++ .../protected/pages/Controls/Samples/TextBox.php | 16 +++++ .../protected/pages/Controls/Simple.page | 6 ++ .../protected/pages/Fundamentals/Components.page | 2 +- demos/quickstart/themes/Simple/style.css | 7 ++ 7 files changed, 144 insertions(+), 12 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TextBox.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TextBox.php (limited to 'demos') diff --git a/demos/quickstart/protected/controls/Highlighter/geshi/prado.php b/demos/quickstart/protected/controls/Highlighter/geshi/prado.php index 95759a87..c9d96a35 100644 --- a/demos/quickstart/protected/controls/Highlighter/geshi/prado.php +++ b/demos/quickstart/protected/controls/Highlighter/geshi/prado.php @@ -100,26 +100,33 @@ $language_data = array ( ), 'REGEXPS' => array( 0 => array( - GESHI_SEARCH => '((<)(com:)([a-z0-9\\\.]+)(\s*))', - GESHI_REPLACE => '\\2\\3\\4\\5', + GESHI_SEARCH => '<(com:[a-z0-9\\\.]+)', + GESHI_REPLACE => '\\1', GESHI_MODIFIERS => 'i', - GESHI_BEFORE => '', + GESHI_BEFORE => '<', GESHI_AFTER => '' ), 1 => array( - GESHI_SEARCH => '(</com:[a-z0-9\-]+\s*>)', + GESHI_SEARCH => '</(com:[a-z0-9\-]+)', GESHI_REPLACE => '\\1', GESHI_MODIFIERS => 'i', - GESHI_BEFORE => '', + GESHI_BEFORE => '</', GESHI_AFTER => '' ), 2 => array( - GESHI_SEARCH => '(</?prop:?([a-z0-9_]+)>)', + GESHI_SEARCH => '(</?)(prop:[a-z0-9_]+>)', + GESHI_REPLACE => '\\2', + GESHI_MODIFIERS => 'i', + GESHI_BEFORE => '\\1', + GESHI_AFTER => '' + ), + 3 => array( + GESHI_SEARCH => '((/)?>)', GESHI_REPLACE => '\\1', GESHI_MODIFIERS => 'i', GESHI_BEFORE => '', GESHI_AFTER => '' - ), + ) ), 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 'SCRIPT_DELIMITERS' => array( diff --git a/demos/quickstart/protected/pages/Controls/Samples/Label.page b/demos/quickstart/protected/pages/Controls/Samples/Label.page index 2fa77988..381541a0 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/Label.page +++ b/demos/quickstart/protected/pages/Controls/Samples/Label.page @@ -3,28 +3,43 @@
+TTextBox displays a text box on a Web page. The content in the text box is determined by the Text property. You can create a SingleLine, a MultiLine, or a Password text box by setting the TextMode property. The Rows and Columns properties specify their dimensions. If AutoPostBack is true, changing the content in the text box and then moving the focus out of it will cause postback action. +
+
Static component instantiation is about creating components via configurations. The actual creation work is done by the PRADO framework. For example, in an application configuration, one can configure a module to be loaded when the application runs. The module is thus a static component created by the framework. Static component instantiation is more commonly used in templates. Every component tag in a template specifies a component that will be automatically created by the framework when the template is loaded. For example, in a page template, the following tag will lead to the creation of a TButton component on the page,
-