function __construct()
 {
     parent::__construct();
     parent::set_size_request(500, 300);
     parent::set_title('Adianti ERP Template');
     parent::add(new GtkLabel('No desktop version available for this system'));
     parent::show_all();
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct();
     parent::set_title('Adianti Framework :: Samples');
     $this->content = new GtkFixed();
     $vbox = new GtkVBox();
     $vbox->pack_start(GtkImage::new_from_file('app/images/pageheader-gtk.png'), false, false);
     $MenuBar = TMenuBar::newFromXML('menu.xml');
     $vbox->pack_start($MenuBar, false, false);
     $vbox->pack_start($this->content, true, true);
     parent::add($vbox);
     parent::show_all();
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     parent::set_title('Adianti Framework :: Library');
     $this->content = new GtkFixed();
     $vbox = new GtkVBox();
     $vbox->pack_start(GtkImage::new_from_file('app/images/pageheader-gtk.png'), false, false);
     $hbox = new GtkHBox();
     $vbox->pack_start($hbox, true, true);
     $frame = new GtkFrame();
     $frame->add($this->content);
     $this->scroll = new GtkScrolledWindow();
     $this->scroll->set_policy(GTK::POLICY_AUTOMATIC, GTK::POLICY_ALWAYS);
     $this->scroll->set_size_request(200, -1);
     $hbox->pack_start($this->scroll, false, false);
     $hbox->pack_start($frame, true, true);
     parent::add($vbox);
     parent::show_all();
     $this->run('LoginForm');
 }