From 67666aaccb4b4743a084b214722e1173e827e9d1 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 22:14:00 +0000 Subject: upported recent documentation changes from branch/3.1 to trunk/ --- .gitattributes | 29 ++++++++ .../pages/ActiveControls/ActiveImage.page | 16 ++++ .../pages/ActiveControls/ActiveImageButton.page | 17 +++++ .../pages/ActiveControls/ActiveLabel.page | 16 ++++ .../pages/ActiveControls/ActiveLinkButton.page | 19 +++++ .../pages/ActiveControls/ActiveMultiView.page | 14 ++++ .../pages/ActiveControls/ActivePanel.page | 24 ++++++ .../pages/ActiveControls/ActiveRadioButton.page | 20 +++++ .../pages/ActiveControls/ActiveTextBox.page | 15 ++++ .../protected/pages/ActiveControls/Home.page | 60 ++++++++------- .../Samples/TActiveImage/HelloWorld.html | 8 ++ .../ActiveControls/Samples/TActiveImage/Home.page | 20 +++++ .../ActiveControls/Samples/TActiveImage/Home.php | 17 +++++ .../Samples/TActiveImage/hello_world.gif | Bin 0 -> 1602 bytes .../Samples/TActiveImage/hello_world2.gif | Bin 0 -> 662 bytes .../Samples/TActiveImageButton/Home.page | 49 ++++++++++++ .../Samples/TActiveImageButton/Home.php | 18 +++++ .../Samples/TActiveImageButton/hello_world.gif | Bin 0 -> 1602 bytes .../ActiveControls/Samples/TActiveLabel/Home.page | 34 +++++++++ .../ActiveControls/Samples/TActiveLabel/Home.php | 16 ++++ .../Samples/TActiveLinkButton/Home.page | 46 ++++++++++++ .../Samples/TActiveLinkButton/Home.php | 14 ++++ .../Samples/TActiveMultiView/Home.page | 37 ++++++++++ .../Samples/TActiveMultiView/Home.php | 15 ++++ .../ActiveControls/Samples/TActivePanel/Home.page | 24 ++++++ .../ActiveControls/Samples/TActivePanel/Home.php | 21 ++++++ .../Samples/TActiveRadioButton/Home.page | 82 +++++++++++++++++++++ .../Samples/TActiveRadioButton/Home.php | 27 +++++++ .../Samples/TActiveTextBox/Home.page | 31 ++++++++ .../ActiveControls/Samples/TActiveTextBox/Home.php | 16 ++++ .../protected/pages/Controls/ColorPicker.page | 29 +++++++- .../quickstart/protected/pages/Controls/Head.page | 34 ++++++++- .../pages/Controls/Samples/TColorPicker/Home.page | 37 ++++++++++ .../protected/pages/Controls/Standard.page | 4 +- .../Web/UI/ActiveControls/TActiveImageButton.php | 2 +- framework/Web/UI/ActiveControls/TActiveTextBox.php | 4 +- framework/Web/UI/WebControls/TColorPicker.php | 25 ++++++- framework/Web/UI/WebControls/TDatePicker.php | 2 +- framework/Web/UI/WebControls/THead.php | 2 +- 39 files changed, 802 insertions(+), 42 deletions(-) create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveImage.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActivePanel.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page diff --git a/.gitattributes b/.gitattributes index 716d26e5..0d0b1761 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1290,7 +1290,15 @@ demos/quickstart/protected/pages/ActiveControls/ActiveButton.page -text demos/quickstart/protected/pages/ActiveControls/ActiveCheckBox.page -text demos/quickstart/protected/pages/ActiveControls/ActiveCustomValidator.page -text demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveImage.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page -text demos/quickstart/protected/pages/ActiveControls/ActivePager.page -text +demos/quickstart/protected/pages/ActiveControls/ActivePanel.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page -text +demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page -text demos/quickstart/protected/pages/ActiveControls/AutoComplete.page -text demos/quickstart/protected/pages/ActiveControls/DragDrop.page -text demos/quickstart/protected/pages/ActiveControls/Home.page -text @@ -1320,7 +1328,25 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveDataGrid/Sample6. demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/RegionDisplay.tpl -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample1.page -text @@ -1335,6 +1361,8 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample5. demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRepeater/Sample5.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page -text demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page -text +demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.page -text demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.php -text demos/quickstart/protected/pages/ActiveControls/Samples/config.xml -text @@ -1512,6 +1540,7 @@ demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TClientSideValidator/Home.php -text +demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page -text diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page new file mode 100644 index 00000000..8cce8c9e --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page @@ -0,0 +1,16 @@ + + +

TActiveImage

+ + +

+TActiveImage is the active control counter part to TImage. TActiveImage displays an image on a page. The image is specified via the ImageUrl property which takes a relative or absolute URL to the image file. The alignment of the image displayed is set by the ImageAlign property. To set alternate text or long description of the image, use AlternateText or DescriptionUrl, respectively. +

+ +

+TActiveImage allows the AlternateText, ImageAlign, ImageUrl +and DescriptionUrl to be updated during a callback request. +

+ + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page new file mode 100644 index 00000000..44b988dd --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page @@ -0,0 +1,17 @@ + + +

TActiveImageButton

+ + +

+TActiveImageButton is the active counterpart of TImageButton. +When a TActiveImageButton is clicked, rather than a normal post back request a callback request is initiated. +TheOnCallback event is raised during a callback request and it is raised after the OnClick event. +

+ +

+TActiveImageButton is similar to TActiveButton, except that TActiveImageButton displays the button as an image. The image is specified via ImageUrl, and the alternate text is specified by Text. In addition, it is possible to obtain the coordinate of the point where the image is clicked. The coordinate information is contained in the event parameter of the OnClick event (not OnCallback). +

+ + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page new file mode 100644 index 00000000..8db4cf34 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page @@ -0,0 +1,16 @@ + + +

TActiveLabel

+ + +

+TActiveLabel is the active control counterpart of TLabel component. When +ActiveControl.EnableUpdate property is true during a callback request, setting Text +property will also set the text of the label on the client upon callback +completion. Similarly, setting ForControl will also set +the client-side "for" attribute on the label. +

+ + + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page new file mode 100644 index 00000000..387b40af --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLinkButton.page @@ -0,0 +1,19 @@ + + +

TActiveLinkButton

+ + +

+TActiveLinkButton is the active control counter part to TLinkButton. +When a TActiveLinkButton is clicked, rather than a normal post back request a +callback request is initiated. +The OnCallback event is raised during a callback request +and it is raise after the OnClick event. +When the ActiveControl.EnableUpdate +property is true, changing the Text property during callback request +will update the link text upon callback response completion. +

+ + + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page new file mode 100644 index 00000000..a9553646 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveMultiView.page @@ -0,0 +1,14 @@ + + +

TActiveMultiView

+ + +

+TActiveMultiView is the active counterpart to the original TMultiView control. +TActiveMultiView serves as a container for a group of TView controls, which can be retrieved by the Views property. Each view contains child controls. TActiveMultiView determines which view and its child controls are visible. At any time, at most one view is visible (called active). To make a view active, set ActiveView or ActiveViewIndex. Note, by default there is no active view. +TActiveMultiView is able to render itself on Callback when ActiveView or ActiveViewIndex properties are changed. +

+ + + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page new file mode 100644 index 00000000..dcfbc312 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActivePanel.page @@ -0,0 +1,24 @@ + + +

TActivePanel

+ + +

+ +TActivePanel is the TPanel active control counterpart. +TActivePanel allows the client-side panel contents to be updated during a +callback response using the render method. +Example: Assume $param is an instance of TCallbackEventParameter attached to +the OnCallback event of a TCallback with ID "callback1", and +"panel1" is the ID of a TActivePanel. + + +function callback1_requested($sender, $param) +{ + $this->panel1->render($param->getNewWriter()); +} + + + + +

$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page new file mode 100644 index 00000000..ac6cf5ae --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveRadioButton.page @@ -0,0 +1,20 @@ + + +

TRadioButton

+ + +

+TActiveRadioButton is the active control counter part to TRadioButton. +The AutoPostBack property is set to true by default. Thus, when the radio button is clicked a +OnCallback event is raise after OnCheckedChanged event. +

+ +

+The Text and Checked properties can be changed during a callback. +The GroupName property may NOT be changed during callback because the client-side +name attribute is read-only and can not be changed using javascript. +

+ + + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page new file mode 100644 index 00000000..9a508e32 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveTextBox.page @@ -0,0 +1,15 @@ + + +

TActiveTextBox

+ + +

+TActiveTextBox is the active control counterpart of TTextBox component. +TActiveTextBox allows the Text property of the textbox to +be changed during callback. When AutoPostBack property +is true, changes to the textbox contents will perform a callback request causing +OnTextChanged to be fired first followed by OnCallback event. +

+ + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index d23f689f..93b5b6eb 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -43,29 +43,35 @@ TActiveButton control. See also the later part of the TActiveImage + TActiveImage represents an image on a Web page.
  • - * TActiveImageButton + TActiveImageButton represents a click button that has an image as the background. It is can be used to trigger a callback request.
  • - * TActiveLabel - represents a label on a Web page. - The label can be customized via various CSS attributes. + TActiveLabel + represents a label on a Web page. + The label can be customized via various CSS attributes. +
  • + +
  • + TActiveLinkButton + represents a hyperlink that can perform a callback request.
  • - * TActiveLinkButton - represents a hyperlink that can perform a callback request. + TActiveMultiView + represents a container for a group of TView controls, each of which is container for other controls. + At any time, at most one TView is visible. It's the active counterpart of TMultiView.
  • - * TActivePanel + TActivePanel represents a container for other controls on a Web page. In HTML, it is displayed as a <div> element. The panel's contents can be replaced during a callback request. @@ -78,23 +84,17 @@ TActiveButton control. See also the later part of the TActiveRadioButton + TActiveRadioButton represents a radiobutton on a Web page. It is mainly used in a group from which users make a choice. It can be used to perform a callback request.
  • - * TActiveTableRow and TActiveTableCell - represents a table row (or cell) which can be updated on callback, and can raise a callback - when clicked. -
  • - -
  • - * TActiveTextBox - represents a text input field on a Web page. - It can collect single-line, multi-line or password text input from users. - It can be used to perform a callback request. + TActiveTextBox + represents a text input field on a Web page. + It can collect single-line, multi-line or password text input from users. + It can be used to perform a callback request.
  • @@ -109,7 +109,7 @@ TActiveButton control. See also the later part of the TActiveCheckBoxList displays a list of checkboxes on a Web page and each checkbox - can trigger a callback request. + can trigger a callback request.
  • @@ -131,23 +131,27 @@ TActiveButton control. See also the later part of the Active Data Controls +

    Extended Active Controls

    diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html new file mode 100644 index 00000000..3a319a1b --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html @@ -0,0 +1,8 @@ + + +Hello World! + + +This is Hello World long description file! + + \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page new file mode 100644 index 00000000..02cc3446 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page @@ -0,0 +1,20 @@ + + +

    TActiveImage Samples

    + + + + + +
    +ImageUrl being changed on callback request: + + + AlternateText="Hello World!"/> + + +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php new file mode 100644 index 00000000..3628ad0a --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php @@ -0,0 +1,17 @@ +imageTest->ImageUrl=$this->publishAsset("hello_world.gif"); + } + + public function buttonClicked2($sender, $param) + { + $this->imageTest->ImageUrl=$this->publishAsset("hello_world2.gif"); + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif new file mode 100644 index 00000000..bc81443c Binary files /dev/null and b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif differ diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif new file mode 100644 index 00000000..a8c73cf6 Binary files /dev/null and b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif differ diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page new file mode 100644 index 00000000..8277a8cb --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.page @@ -0,0 +1,49 @@ + + +

    TActiveImageButton Samples

    + + + + + + + + + +
    +A click image button showing the click location: + + + Text="hello world" + OnClick="buttonClicked" + /> + +
    +A callback image button: + + + Text="hello world" + OnCallback="buttonClicked" + ActiveControl.CallbackParameter="value" + /> + +
    +An image button causing validation: + + + + + Text="hello world" + ValidationGroup="Group" + /> +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php new file mode 100644 index 00000000..b1f2c53b --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/Home.php @@ -0,0 +1,18 @@ +Result2->Text="Callback parameter: $param->CallbackParameter"; + } + else + { + $this->Result->Text="You clicked at ($param->X,$param->Y)"; + } + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif new file mode 100644 index 00000000..bc81443c Binary files /dev/null and b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImageButton/hello_world.gif differ diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page new file mode 100644 index 00000000..a1e242d3 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page @@ -0,0 +1,34 @@ + + +

    TActiveLabel Samples

    + + + + + + + +
    +An active label text being set as the result of a callback: + + + + +
    +Upon button click, the textbox contents will be set on the label. Note that text needs to be properly escaped to avoid html injections: + + + + +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php new file mode 100644 index 00000000..aa26fbe5 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php @@ -0,0 +1,16 @@ +label1->Text="You clicked the button, didn't you?"; + } + + public function buttonClicked2($sender,$param) + { + $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text); + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page new file mode 100644 index 00000000..0c896f64 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.page @@ -0,0 +1,46 @@ + + +

    TActiveLinkButton Samples

    + + + + + + + + + + + +
    +Link button with only body content: + + +body content + +
    +A click link button: + + +
    +A callback link button: + + +
    +A button causing validation: + + + + +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php new file mode 100644 index 00000000..64e2dede --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLinkButton/Home.php @@ -0,0 +1,14 @@ +Text="Callback Parameter: {$param->CallbackParameter}"; + else + $sender->Text="I'm clicked"; + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page new file mode 100644 index 00000000..6888ad78 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page @@ -0,0 +1,37 @@ + + +

    TActiveMultiView Samples

    + + + +

    View 1

    +

    Please enter a memo:

    + +
    + + +
    + +

    View 2

    +

    Please choose a color:

    + + + + + +
    + + +
    + +

    View 3

    + +
    + +
    + + +
    +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php new file mode 100644 index 00000000..1a5dbed3 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php @@ -0,0 +1,15 @@ +MultiView->ActiveViewIndex===2) + { + $this->Result1->Text="Your text input is: ".$this->Memo->Text; + $this->Result2->Text="Your color choice is: ".$this->DropDownList->SelectedValue; + } + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page new file mode 100644 index 00000000..1fb7ca23 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page @@ -0,0 +1,24 @@ + + +

    TActivePanel Samples

    + + + + +
    +Active panel updated on callback: + + +This is panel content +
    a checkbox: +
    a textbox: +
    a label: +
    +
    +When you press the button, the panel contents will change. Note that out of the +panel and the button, all the other controls are not active but gets updated +anyway since they are placed inside the active panel. +
    +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php new file mode 100644 index 00000000..ae174f59 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php @@ -0,0 +1,21 @@ +check1->Checked = !$this->check1->Checked; + if($this->txt1->Text=="") + $this->txt1->Text="changes happens"; + else + $this->txt1->Text=""; + if($this->label1->Text=="") + $this->label1->Text="label has changed, too"; + else + $this->label1->Text=""; + + $this->panel1->render($param->NewWriter); + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page new file mode 100644 index 00000000..13b7853c --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page @@ -0,0 +1,82 @@ + + +

    TActiveRadioButton Samples

    + + + + + + + + + + + +
    +A callback radiobutton: + + +
    +A radiobutton causing validation on a textbox: + + + + +
    +A radiobutton validated by a required field validator: + + + + +
    +A radiobutton group: + + + + + +
    + +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php new file mode 100644 index 00000000..034d2fcc --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php @@ -0,0 +1,27 @@ +Text="I'm clicked"; + } + + public function selectRadioButton($sender,$param) + { + $selection=''; + if($this->Radio1->Checked) + $selection.='1'; + if($this->Radio2->Checked) + $selection.='2'; + if($this->Radio3->Checked) + $selection.='3'; + if($this->Radio4->Checked) + $selection.='4'; + if($selection==='') + $selection='empty'; + $this->Result->Text='Your selection is '.$selection; + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page new file mode 100644 index 00000000..b4ea8afc --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.page @@ -0,0 +1,31 @@ + + +

    TActiveTextBox Samples

    + + + + + + + +
    +An active textbox being set as the result of a callback: + + + + +
    +An active textbox with AutoPostBack="true"; Pressing Enter/Return, the textbox contents will be set on the label. +Note that text needs to be properly escaped to avoid html injections: + + + +
    + +
    $Id: Home.page 2946 2011-06-01 21:01:57Z ctrlaltca@gmail.com $
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php new file mode 100644 index 00000000..1993b78d --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php @@ -0,0 +1,16 @@ +txt1->Text="You clicked the button, didn't you?"; + } + + public function textChanged($sender,$param) + { + $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text); + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/ColorPicker.page b/demos/quickstart/protected/pages/Controls/ColorPicker.page index cc931840..57c39857 100644 --- a/demos/quickstart/protected/pages/Controls/ColorPicker.page +++ b/demos/quickstart/protected/pages/Controls/ColorPicker.page @@ -3,8 +3,33 @@

    TColorPicker

    -

    -TBD +

    +TColorPicker displays a text box for color input purpose. +Next to the textbox there's a button filled with the current chosen color. +Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF). +
    Alternatively, if the ShowColorPicker property is enabled (it is by default), users can click the button +to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker.

    +

    +TColorPicker has three different color picker UI Modes:

    + + +

    The CssClass property can be used to override the CSS class name +for the color picker panel. The ColorStyle property changes the overall color picker style. +The following ColorStyle values are available:

    + + +

    If the Mode property is set to Full, the color picker panel will +display an "Ok" and "Cancel" buttons. You can customize the button labels setting the OKButtonText +and CancelButtonText properties.

    + + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Head.page b/demos/quickstart/protected/pages/Controls/Head.page index 7e4a19ec..594bb069 100644 --- a/demos/quickstart/protected/pages/Controls/Head.page +++ b/demos/quickstart/protected/pages/Controls/Head.page @@ -4,7 +4,39 @@

    -TBD +THead displays a head element on a page. It displays the content +enclosed in its body and the page title set by the Title property. +

    + +

    +In addition, stylesheets and JavaScripts registered via +

      +
    • TClientScriptManager::registerStyleSheet,
    • +
    • TClientScriptManager::registerStyleSheetFile,
    • +
    • TClientScriptManager::registerHeadJavaScript and
    • +
    • TClientScriptManager::registerHeadJavaScriptFile
    • +
    +will also be displayed in the head.

    + +

    +THead also manages and displays meta tags through its MetaTags +property. You can add a meta object to the collection in code dynamically, +or add it in template using the following syntax +

    + + +<com:THead> + <com:TMetaTag HttpEquiv="Pragma" Content="no-cache" /> + <com:TMetaTag Name="keywords" Content="Prado" /> +</com:THead> + + +

    +Note, TPage has a property Head that refers to +the THead control currently on the page. A page can have at most one THead +control. Although not required, it is recommended to place a THead on your page. +Without a THead on the page, stylesheets and javascripts in the current page +theme will not be rendered.

    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page new file mode 100644 index 00000000..0a1f3705 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page @@ -0,0 +1,37 @@ + + +

    TColorPicker Samples

    + + + + + + + + + + + + + + + + + + + + + + + +
    Default TColorPicker, Mode="Basic" + +
    Mode="Simple"
    pre-selected red color
    + +
    Mode="Full" + +
    Disabled color picker panel: ShowColorPicker="false" + +
    + +
    $Id: Home.page 1650 2007-01-24 06:55:32Z wei $
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index 3b6079d6..9fde5a29 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -23,7 +23,7 @@ TClientScriptLoader loads custom javascript libraries.
  • -
  • * +
  • TColorPicker represents an input field taking color values via a color dialog.
  • @@ -43,7 +43,7 @@ TFileUpload represents a file upload field. It allows users to upload a file to server. -
  • * +
  • THead represents the <head> element on an HTML Web page. It is required by a PRADO page should it use themes.
  • diff --git a/framework/Web/UI/ActiveControls/TActiveImageButton.php b/framework/Web/UI/ActiveControls/TActiveImageButton.php index f8cd6e12..4e7b5149 100644 --- a/framework/Web/UI/ActiveControls/TActiveImageButton.php +++ b/framework/Web/UI/ActiveControls/TActiveImageButton.php @@ -13,7 +13,7 @@ /** * TActiveImageButton class. * - * TActiveImageButton is the active control counter part to TLinkButton. + * TActiveImageButton is the active control counter part to TImageButton. * When a TActiveImageButton is clicked, rather than a normal post back request a * callback request is initiated. * diff --git a/framework/Web/UI/ActiveControls/TActiveTextBox.php b/framework/Web/UI/ActiveControls/TActiveTextBox.php index 97efe008..63f5e191 100644 --- a/framework/Web/UI/ActiveControls/TActiveTextBox.php +++ b/framework/Web/UI/ActiveControls/TActiveTextBox.php @@ -4,7 +4,7 @@ * * @author Wei Zhuo * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web.UI.ActiveControls @@ -21,7 +21,7 @@ Prado::using('System.Web.UI.ActiveControls.TActiveControlAdapter'); * TActiveTextBox allows the {@link setText Text} property of the textbox to * be changed during callback. When {@link setAutoPostBack AutoPostBack} property * is true, changes to the textbox contents will perform a callback request causing - * {@link onTextChanged OnTextChange} to be fired first followed by {@link onCallback OnCallback} + * {@link onTextChanged OnTextChanged} to be fired first followed by {@link onCallback OnCallback} * event. * * @author Wei Zhuo diff --git a/framework/Web/UI/WebControls/TColorPicker.php b/framework/Web/UI/WebControls/TColorPicker.php index 0fc7eef4..1066bf76 100644 --- a/framework/Web/UI/WebControls/TColorPicker.php +++ b/framework/Web/UI/WebControls/TColorPicker.php @@ -13,8 +13,25 @@ /** * TColorPicker class. * - * Be aware, this control is EXPERIMENTAL and is not stablized yet. + * TColorPicker displays a text box for color input purpose. + * Next to the textbox there's a button filled with the current chosen color. + * Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF). + * Alternatively, if the ShowColorPicker property is enabled (it is by default), users can click the button + * to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker. * + * TColorPicker has three different color picker UI Modes: + * # Simple - Grid with 12 simple colors. + * # Basic - Grid with the most common 70 colors. This is the default mode. + * # Full - Full-featured color picker. + * + * The CssClass property can be used to override the CSS class name + * for the color picker panel. The ColorStyle property sets the packages + * styles available. E.g. default. + * + * If the Mode property is set to Full, the color picker panel will + * display an "Ok" and "Cancel" buttons. You can customize the button labels setting the OKButtonText + * and CancelButtonText properties. + * * @author Wei Zhuo * @version $Id$ * @package System.Web.UI.WebControls @@ -226,9 +243,9 @@ class TColorPicker extends TTextBox * that a {@link TColorPicker} control can take. * * The following enumerable values are defined: - * - Simple - * - Basic - * - Full + * # Simple - Grid with 12 simple colors. + * # Basic - Grid with the most common 70 colors. This is the default mode. + * # Full - Full-featured color picker. * * @author Qiang Xue * @version $Id$ diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index 1bac5a1c..5d5a17e6 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -56,7 +56,7 @@ Prado::using('System.Web.UI.WebControls.TTextBox'); * * The InputMode property can be set to "TextBox" or "DropDownList" with * default as "TextBox". - * In DropDownList mode, in addition to the popup date picker, three + * In DropDownList mode, in addition to the popup date picker, three * drop down list (day, month and year) are presented to select the date . * * The PositionMode property can be set to "Top" or "Bottom" with default diff --git a/framework/Web/UI/WebControls/THead.php b/framework/Web/UI/WebControls/THead.php index 36b81648..9daa6d3b 100644 --- a/framework/Web/UI/WebControls/THead.php +++ b/framework/Web/UI/WebControls/THead.php @@ -31,7 +31,7 @@ * * * Note, {@link TPage} has a property {@link TPage::getHead Head} that refers to - * the THead control currently on the page. A page can have at most once THead + * the THead control currently on the page. A page can have at most one THead * control. Although not required, it is recommended to place a THead on your page. * Without a THead on the page, stylesheets and javascripts in the current page * theme will not be rendered. -- cgit v1.2.3