From d0ce04fb74c0163951bbb36fa4f05973d91b02eb Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 22:05:09 +0000 Subject: added documentation for TActivePanel class --- .../pages/ActiveControls/ActivePanel.page | 24 ++++++++++++++++++++++ .../protected/pages/ActiveControls/Home.page | 2 +- .../ActiveControls/Samples/TActivePanel/Home.page | 24 ++++++++++++++++++++++ .../ActiveControls/Samples/TActivePanel/Home.php | 21 +++++++++++++++++++ 4 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActivePanel.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActivePanel/Home.php (limited to 'demos/quickstart/protected/pages') 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/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index 6f403a42..93b5b6eb 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -71,7 +71,7 @@ TActiveButton control. See also the later part of the 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. 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 -- cgit v1.2.3