From 2d88e84697fa4a36b7a2077b9e086aa2f9d3d67a Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 18 Jun 2006 06:49:29 +0000 Subject: Add ActiveCheckBox --- .../protected/pages/ActiveCheckBoxTest.php | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php') diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php new file mode 100644 index 00000000..d762ab28 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php @@ -0,0 +1,32 @@ +checkbox1->Text = "Hello CheckBox 1"; + } + + function change_checkbox1_checked() + { + $this->checkbox1->Checked = !$this->checkbox1->Checked; + } + + function change_checkbox2_text() + { + $this->checkbox2->Text = "CheckBox 2 World"; + } + + function change_checkbox2_checked() + { + $this->checkbox2->Checked = !$this->checkbox2->Checked; + } + + function checkbox_requested($sender, $param) + { + $this->label1->Text = "Label 1:".$sender->Text. + ($sender->checked ? ' Checked ' : ' Not Checked'); + } +} + +?> \ No newline at end of file -- cgit v1.2.3