Example #1
0
$textarea = new TextArea("textarea", "Hola Mundo!");
//$textarea->Show ();
$radio = new RadioButtons("favoritos", "vertical");
$radio->AddOption("Jaws Project", "jawsproject");
$radio->AddOption("Piwi Project", "piwiproject");
$radio->SetDefault("piwiproject");
//$radio->Show ();
$check = new CheckButtons("favoritos2", "vertical");
$check->AddOption("Jaws Project", "jawsproject");
$check->AddOption("Piwi Project", "piwiproject");
$check->SetDefault("piwiproject");
$spin = new SpinButton("spin", 10);
$spin->SetDefault(3);
$vbox = new VBox();
$vbox->PackStart($comboimage);
$vbox->PackEnd($entry);
$vbox->PackStart($check);
$hbox = new HBox();
$hbox->PackStart($button);
$hbox->PackStart($radio);
$hbox->PackEnd($vbox);
//$hbox->Show ();
$toolbar = new Toolbar();
$toolbar->Add($button);
$toolbar->Add($entry);
$toolbar->Add($comboimage);
$toolbar->Add($spin);
$toolbar->SetStyle("background-color: #331");
$editor = new VBox();
$editor->PackStart($toolbar);
$editor->PackStart($textarea);