Example #1
0
 public function onInit($param)
 {
     parent::onInit($param);
     // Text Box
     $textBox = new TTextBox();
     $textBox->setVisible(false);
     $textBox->setID("MyTextBox");
     $this->panel1->getControls()->add($textBox);
     $this->registerObject("MyTextBox", $textBox);
     // Submit button
     $button = new TActiveButton();
     $button->setVisible(false);
     $button->setID("MyButton");
     $button->setText("Submit");
     $button->attachEventHandler("OnCallback", array($this, "clickedButton"));
     $this->panel1->getControls()->add($button);
     $this->registerObject("MyButton", $button);
 }