<?php class PageStateTest extends TPage { function button1_oncallback($sender, $param) { sleep(rand(0,5)); $this->label1->Text .= " button1 clicked "; } } ?>