/** * Register the WxWidgets launcher * * @return void */ protected function registerLauncher() { $this->container->bind('launcher', function () { wxInitAllImageHandlers(); \wxApp::SetInstance($this->container['wx']); wxEntry(); }); }
function onSaveClick($event) { $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();
$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();
<?php dl("wxwidgets.so"); include "all_includes.php"; use xiaris\XiarisFrame; class myApp extends wxApp { function OnInit() { global $mf; wxInitAllImageHandlers(); $mf = new XiarisFrame(); $mf->Show(); return 0; } function OnExit() { return 1; } } $xt = new myApp(); wxApp::SetInstance($xt); wxEntry();
} function OnCancelButtonClick($event) { $event->Skip(); } function OnSaveButtonClick($event) { $event->Skip(); } function __destruct() { } } class PocketMineGui extends \wxApp { function OnInit() { wxInitAllImageHandlers(); $this->mf = new frmMain(); $this->mf->Show(); return true; } function OnExit() { //TODO: call normal server stop procedure return false; } } $app = new PocketMineGui(); \wxApp::SetInstance($app); wxEntry();
if (count($clo[$selClass]) <= 0) { unset($clo[$selClass]); } } return; } $methods_count++; } } } } //Application initialization start point class myApp extends wxApp { function OnInit() { $zs = new myFrame(); $zs->Show(); $zs->Maximize(); $this->frm = $zs; return true; } function OnExit() { return 0; } } wxInitAllImageHandlers(); $classSelectorApp = new myApp(); wxApp::SetInstance($classSelectorApp); wxEntry();
for ($i = 0; $i < $total; $i++) { $documents[] = $this->m_pdfList->GetString($i); } $this->converting = true; $this->m_timer->Start(500); $this->document_converter->SetDocuments($documents, $output_dir); $this->document_converter->Create(); $this->document_converter->Run(); } } } //Application initialization start point class myApp extends wxApp { function OnInit() { $zs = new ConvertFrame(); $zs->Show(); $zs->Maximize(); $this->frm = $zs; return true; } function OnExit() { return 0; } } wxInitAllImageHandlers(); $pdf2SwfApp = new myApp(); wxApp::SetInstance($pdf2SwfApp); wxEntry();
public function run() { \wxApp::SetInstance($this); wxEntry(); }