コード例 #1
0
ファイル: app.php プロジェクト: jgmdev/xiaris
 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
ファイル: statbar.php プロジェクト: phpsong/wxphp
 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
ファイル: lanchat.php プロジェクト: phpsong/wxphp
 function OnInit()
 {
     wxInitAllImageHandlers();
     $this->frame = new LanChat();
     $this->frame->Show();
     return true;
 }
コード例 #5
0
ファイル: webview.php プロジェクト: phpsong/wxphp
        $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
ファイル: gui.php プロジェクト: NewDelion/PocketMine-0.13.x
 function OnInit()
 {
     wxInitAllImageHandlers();
     $this->mf = new frmMain();
     $this->mf->Show();
     return true;
 }