Пример #1
0
 function OnInit()
 {
     global $mf;
     wxInitAllImageHandlers();
     $mf = new XiarisFrame();
     $mf->Show();
     return 0;
 }
Пример #2
0
 /**
  * Register the WxWidgets launcher
  * 
  * @return void
  */
 protected function registerLauncher()
 {
     $this->container->bind('launcher', function () {
         wxInitAllImageHandlers();
         \wxApp::SetInstance($this->container['wx']);
         wxEntry();
     });
 }
Пример #3
0
 public function OnInit()
 {
     wxInitAllImageHandlers();
     // create the main application window
     $frame = new MyFrame("wxStatusBar sample", new wxPoint(50, 50), new wxSize(450, 340));
     // and show it (the frames, unlike simple controls, are not shown when
     // created initially)
     $frame->Show();
 }
Пример #4
0
 function OnInit()
 {
     wxInitAllImageHandlers();
     $this->frame = new LanChat();
     $this->frame->Show();
     return true;
 }
Пример #5
0
        $bSizer1 = new wxBoxSizer(wxVERTICAL);
        $this->m_webView = wxWebView::NewMethod($this, wxID_ANY, "http://wxphp.org/");
        $bSizer1->Add($this->m_webView, 1, wxALL | wxEXPAND, 5);
        $this->SetSizer($bSizer1);
        $this->Layout();
        $this->Centre(wxBOTH);
    }
    function __destruct()
    {
    }
}
//Application initialization start point
class myApp extends wxApp
{
    function OnInit()
    {
        $zs = new MyFrame1();
        $zs->Show();
        $zs->Maximize();
        $this->frm = $zs;
        return true;
    }
    function OnExit()
    {
        return 0;
    }
}
wxInitAllImageHandlers();
$gridApp = new myApp();
wxApp::SetInstance($gridApp);
wxEntry();
Пример #6
0
 function OnInit()
 {
     wxInitAllImageHandlers();
     $this->mf = new frmMain();
     $this->mf->Show();
     return true;
 }