blob: 3789a3f9e079dfd0675ec65eec0e21d359a8f0e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/*
* Created on 13/05/2006
*/
class Calculator2 extends TPage
{
public function do_sum($sender, $param)
{
$this->c->Text = floatval($this->a->Text) + floatval($this->b->Text);
}
public function update_callback($sender, $param)
{
$this->do_sum($this->sum, null);
$this->panel1->renderControl($param->Output);
}
}
?>
|