From 3baba6fb4b6c17ff77eb4a13a812ccde9263dce2 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 23:01:03 +0000 Subject: gave the build scripts a run so that new ids can be generated. Added new docs to the quickstart.pdf misc doc fixes --- buildscripts/texbuilder/quickstart/pages.php | 37 +++++++++++++++------- .../pages/ActiveControls/ActiveHyperLink.page | 2 +- .../pages/ActiveControls/ActiveImage.page | 2 +- .../pages/ActiveControls/ActiveImageButton.page | 2 +- .../pages/ActiveControls/ActiveLabel.page | 2 +- .../pages/ActiveControls/ActiveLinkButton.page | 2 +- .../pages/ActiveControls/ActiveMultiView.page | 2 +- .../pages/ActiveControls/ActivePanel.page | 2 +- .../pages/ActiveControls/ActiveRadioButton.page | 2 +- .../pages/ActiveControls/ActiveTextBox.page | 2 +- .../pages/ActiveControls/AutoComplete.page | 4 +-- .../protected/pages/ActiveControls/DragDrop.page | 4 +-- .../protected/pages/Controls/Captcha.page | 18 +++++------ .../pages/Controls/ClientScriptLoader.page | 12 +++---- .../protected/pages/Controls/Conditional.page | 6 ++-- .../protected/pages/Controls/Keyboard.page | 12 +++---- .../protected/pages/Controls/Slider.page | 12 +++---- .../protected/pages/Controls/Standard.page | 3 +- framework/Web/UI/ActiveControls/TActivePanel.php | 4 +-- 19 files changed, 72 insertions(+), 58 deletions(-) diff --git a/buildscripts/texbuilder/quickstart/pages.php b/buildscripts/texbuilder/quickstart/pages.php index 324af67a..481a0c09 100644 --- a/buildscripts/texbuilder/quickstart/pages.php +++ b/buildscripts/texbuilder/quickstart/pages.php @@ -30,18 +30,14 @@ $pages['Tutorial: Addressbook'] = array( 'Tutorial/AddressBook.page' ); -$pages['Tutorial: Addressbook'] = array( - 'Tutorial/AddressBook.page' - ); - $pages['Fundamentals'] = array( 'Fundamentals/Architecture.page', - 'Fundamentals/Components.page', - 'Fundamentals/Controls.page', - 'Fundamentals/Pages.page', - 'Fundamentals/Modules.page', - 'Fundamentals/Services.page', - 'Fundamentals/Applications.page' + 'Fundamentals/Components.page', + 'Fundamentals/Controls.page', + 'Fundamentals/Pages.page', + 'Fundamentals/Modules.page', + 'Fundamentals/Services.page', + 'Fundamentals/Applications.page' ); $pages['Configurations'] = array( @@ -55,9 +51,13 @@ $pages['Configurations'] = array( ); $pages['Control Reference : Standard Controls'] = array( + 'Controls/Standard.page', 'Controls/Button.page', + 'Controls/Captcha.page', 'Controls/CheckBox.page', 'Controls/ClientScript.page', + 'Controls/ClientScriptLoader.page', + 'Controls/Conditional.page', 'Controls/ColorPicker.page', 'Controls/DatePicker.page', 'Controls/Expression.page', @@ -71,6 +71,7 @@ $pages['Control Reference : Standard Controls'] = array( 'Controls/Image.page', 'Controls/InlineFrame.page', 'Controls/JavascriptLogger.page', + 'Controls/Keyboard.page', 'Controls/Label.page', 'Controls/LinkButton.page', 'Controls/Literal.page', @@ -81,9 +82,11 @@ $pages['Control Reference : Standard Controls'] = array( 'Controls/PlaceHolder.page', 'Controls/RadioButton.page', 'Controls/SafeHtml.page', + 'Controls/Slider.page', 'Controls/Statements.page', 'Controls/TabPanel.page', 'Controls/Table.page', + 'Controls/TabPanel.page', 'Controls/TextBox.page', 'Controls/TextHighlighter.page', 'Controls/Wizard.page'); @@ -103,7 +106,19 @@ $pages['Control Reference : Data Controls'] = array( $pages['Control Reference : Active Controls (AJAX)'] = array( 'ActiveControls/ActiveButton.page', 'ActiveControls/ActiveCheckBox.page', - 'ActiveControls/ActiveCustomValidator.page'); + 'ActiveControls/ActiveCustomValidator.page', + 'ActiveControls/ActiveHyperLink.page', + 'ActiveControls/ActiveImage.page', + 'ActiveControls/ActiveImageButton.page', + 'ActiveControls/ActiveLabel.page', + 'ActiveControls/ActiveLinkButton.page', + 'ActiveControls/ActiveMultiView.page', + 'ActiveControls/ActivePager.page', + 'ActiveControls/ActivePanel.page', + 'ActiveControls/ActiveRadioButton.page', + 'ActiveControls/ActiveTextBox.page', + 'ActiveControls/AutoComplete.page', + 'ActiveControls/DragDrop.page'); $pages['Active Control Overview'] = array( 'ActiveControls/Home.page', diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page b/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page index a67462cf..3e691de1 100644 --- a/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page @@ -3,7 +3,7 @@
+
The active control counterpart of THyperLink
component. During a callback request, changes to the Text, ImageUrl,
NavigateUrl and Target properties on the server side will also
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page
index 8cce8c9e..b5df187e 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page
index 44b988dd..193876a3 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page
index 8db4cf34..640d5b50 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page
index 387b40af..d692dddd 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page
index a9553646..2c788b2f 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page
index dcfbc312..0cc33545 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page
index ac6cf5ae..b059397f 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page
index 9a508e32..2181c28c 100644
--- a/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page
@@ -1,6 +1,6 @@
diff --git a/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page b/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page
index 14af4af7..8b73a0d9 100644
--- a/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page
+++ b/demos/quickstart/protected/pages/ActiveControls/AutoComplete.page
@@ -1,10 +1,10 @@
-TAutoComplete is an extended ActiveTextBox that provides a list of suggestions on the current partial word typed in the textbox. The suggestions are requested using callbacks. The Frequency and MinChars properties sets the delay and minimum number of characters typed, respectively, before requesting for sugggestions. An embedded TRepeater is used to Display the list of suggestions. It can be accessed and styled through the Suggestions property and its sub-properties.
+TAutoComplete is an extended ActiveTextBox that provides a list of suggestions on the current partial word typed in the textbox. The suggestions are requested using callbacks. The Frequency and MinChars properties sets the delay and minimum number of characters typed, respectively, before requesting for sugggestions. An embedded TRepeater is used to Display the list of suggestions. It can be accessed and styled through the Suggestions property and its sub-properties.
On each request for suggestions, the OnSuggestion event will be raised. The event handler receives the entered token that can be used to build the list of suggestions and to dataBind() it to the Suggestions repeater. TDropContainer represent an area where
@@ -12,7 +12,7 @@ the OnDropk event.
TDraggable will make its child controls 'draggable'.
diff --git a/demos/quickstart/protected/pages/Controls/Captcha.page b/demos/quickstart/protected/pages/Controls/Captcha.page
index 8a6e8a81..6810d2a2 100644
--- a/demos/quickstart/protected/pages/Controls/Captcha.page
+++ b/demos/quickstart/protected/pages/Controls/Captcha.page
@@ -1,36 +1,36 @@
+
TCaptcha displays a CAPTCHA that can be used to determine if the input is entered by a real user instead of some program. TCaptcha displays a token (a string consisting of alphanumeric characters) as an image and the user is expected to repeat the token in a text box. The token image is generated in a way such that it can be recognized by a human being, but not a program.
+
To use TCaptcha, you must enable the PHP GD2 extension with TrueType font support. Unlike other CAPTCHA scripts, TCaptcha does not need session or cookie.
+
The token generated by TCaptcha can be configured in several ways. To specify the length of characters in the token, set MinTokenLength and MaxTokenLength. To use case-insensitive token comparison and generate upper-case-only token, set CaseSensitive to false. More advanced users can try to set TokenAlphabet to specify which characters may appear in the generated tokens.
+
The validation of the token is related with two properties: TestLimit (defaults to 5 times) and TokenExpiry (defaults to 600 seconds). The former specifies how many times a token can be tested with on the server side, and the latter says when a generated token will expire. If the validation fails in any of the two scenarios, a new token will be automatically generated.
+
To specify the appearance of the generated token image, set TokenImageTheme to be an integer between 0 and 63. You may try the following example to see how this value affects the generated token image. The size of the generated token image is determined by TokenFontSize. In particular, the image width is proportional to the font size. You may also set Width to scale the generated image to your desired size, but the scaled image may not look good. By setting ChangingTokenBackground to true, the image background of the token will be variating even though the token is the same during postbacks.
+
Upon postback, user input can be validated by calling the method TCaptcha.validate(). More easily, you can use a TCaptchaValidator to automate the validation work for you. The TCaptchaValidator has the additional benefit of being able to validate the user input on the client-side. By default, a generated token will remain unchanged during postbacks. A new token can be generated by calling TCaptcha.regenerateToken() manually.
+
The following template shows a typical use of the TCaptcha control:
Allowable scripts and script dependencies can be grouped by using a "packages.php" file
with the following format. This "packages.php" is optional, if absent the file names
@@ -81,7 +81,7 @@ on both 'package1' and 'package2' groupings. That is, 'pac
will combine, in order, 'file1.js', 'file2.js', 'file3.js', and 'file4.js'.
To load a particular javascript file or package, set the PackageScripts
property with value 'package1' to load the 'package1' scripts.
@@ -96,10 +96,10 @@ Dependencies of the packages are automatically resolved by the script loader php
</script>
- Each <com:TClientScriptLoader> generates an HTML <script>
+ Each <com:TClientScriptLoader> generates an HTML <script>
element to load the required javascript files. The DebugMode property when false
removes comments and white spaces from the published javascript files. If
the DebugMode property is not set, the debug mode is determined from the
@@ -113,7 +113,7 @@ directory for the next requests. That is, in non-debug mode the scripts are cach
in the assets directory until they are deleted.
-
The EnableGzip property (default is true) enables the
published javascripts to be served as zipped if the browser and php server allows it.
diff --git a/demos/quickstart/protected/pages/Controls/Conditional.page b/demos/quickstart/protected/pages/Controls/Conditional.page
index e8ea4a65..a2662e86 100644
--- a/demos/quickstart/protected/pages/Controls/Conditional.page
+++ b/demos/quickstart/protected/pages/Controls/Conditional.page
@@ -1,6 +1,6 @@
@@ -17,13 +17,13 @@ you set Condition in template only and the expression should not refer
objects that are available on or after the onInit lifecycle.
+
TConditional is very light. It instantiates either TrueTemplate
FalseTemplate, but never both. And the condition is evaluated only once.
A typical usage of TConditional is shown as following:
+
TKeyboard displays a virtual keyboard that users can click on to enter input in
an associated text box. It helps to reduce the keyboard recording hacking.
+
To use TKeyboard, write a template like following:
+
A TKeyboard control is associated with a TTextBox control by specifying
ForControl to be the ID of that control. When the textbox is in focus,
a virtual keyboard will pop up; and when the text box is losing focus, the keyboard
will hide automatically. Set AutoHide to false to keep the keyboard showing all the time.
+
The appearance of the keyboard can also be changed by specifying a customized CSS file via
CssUrl. By default, the CSS class name for the keyboard is 'Keyboard'. This may
also be changed by specifying KeyboardCssClass
diff --git a/demos/quickstart/protected/pages/Controls/Slider.page b/demos/quickstart/protected/pages/Controls/Slider.page
index d71c28a0..324f12ad 100644
--- a/demos/quickstart/protected/pages/Controls/Slider.page
+++ b/demos/quickstart/protected/pages/Controls/Slider.page
@@ -9,7 +9,7 @@ which define the range of possible value, and a handle which can slide
a value in the range. The track can be either Horizontal or Vertical, depending of the Direction
property. By default, it's horizontal.
+
The range boundaries are defined by MinValue and MaxValue properties.
The default range is from 0 to 100.
The StepSize property can be used to define the step between 2 values inside the range.
@@ -17,13 +17,13 @@ Notice that this step will be recomputed if there is more than 200 values betwee
You can also provide the allowed values by setting the Values array.
+
The handle sub-properties can be accessed by Handle property. You can also provide your own control
for the handle, using HandleClass property. Note that this class must be a subclass of
TSliderHandle
+
The TSlider control can be easily customized using CssClasses. You can provide your own css file, using the
CssUrl property.
The css class for TSlider can be set by the CssClass property. Defaults values are 'hslider' for
@@ -33,15 +33,15 @@ draw a red block as a cursor. 'handle-image' css class is also provided f
as the handle.
+
If AutoPostBack property is true, postback is performed as soon as the value changed.
+
TSlider raises the onValueChanged event when the value of the slider has changed during postback.
+
You can also attach ClientSide javascript events handler to the slider :
* the tutorial for this control is not completed yet.TActiveImage
+TActiveImage
TActiveImageButton
+TActiveImageButton
TActiveLabel
+TActiveLabel
TActiveLinkButton
+TActiveLinkButton
TActiveMultiView
+TActiveMultiView
TActivePanel
+TActivePanel
TRadioButton
+TRadioButton
TActiveTextBox
+TActiveTextBox
TAutoComplete
+TAutoComplete
TDropContainer
+TDropContainer
TDraggable
+TDraggable
TCaptcha
+TCaptcha
TClientScriptLoader
+TClientScriptLoader
Grouping Javascript Files
+Grouping Javascript Files
Loading Javascript Packages
+Loading Javascript Packages
Removing Javascript Comments
+Removing Javascript Comments
Compressing Javascript with GZip
+Compressing Javascript with GZip
TConditional
+TConditional
TKeyboard
+TKeyboard
Standard Controls
-Standard Controls
* function callback1_requested($sender, $param)
--
cgit v1.2.3