/**
  * Register the WxWidgets launcher
  * 
  * @return void
  */
 protected function registerLauncher()
 {
     $this->container->bind('launcher', function () {
         wxInitAllImageHandlers();
         \wxApp::SetInstance($this->container['wx']);
         wxEntry();
     });
 }
Exemple #2
0
    {
        $this->name = $this->m_name->GetValue();
        $this->EndModal(0);
    }
}
class TaskBarIcon extends wxTaskBarIcon
{
    function __construct()
    {
        parent::__construct();
        $this->SetIcon(new wxIcon("images/app.png", wxBITMAP_TYPE_PNG), "wxPHP Lan Chat v0.1");
    }
}
class LanChatApp extends wxApp
{
    function OnInit()
    {
        wxInitAllImageHandlers();
        $this->frame = new LanChat();
        $this->frame->Show();
        return true;
    }
    function OnExit()
    {
        return 0;
    }
}
$LanChatApp = new LanChatApp();
wxApp::SetInstance($LanChatApp);
wxEntry();
Exemple #3
0
 public function run()
 {
     \wxApp::SetInstance($this);
     wxEntry();
 }