Example #1
0
 /**
  * Set the window to manage through AUI
  *
  * @todo Move the event handler inits to Show()?
  *
  * @param auiDemoDialog $managedWindow
  */
 public function SetManagedWindow(auiDemoDialog $managedWindow)
 {
     $this->managedWindow = $managedWindow;
     $this->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED, array($this, "onTickboxChangeEvent"));
     $this->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "onButtonClick"));
     $managedWindow->Connect(wxEVT_AUI_PANE_CLOSE, array($this, "onPaneClose"));
 }
Example #2
0
File: app.php Project: halfer/wxphp
 public function OnInit()
 {
     $resource = new wxXmlResource();
     $resource->InitAllHandlers();
     $resource->Load(__DIR__ . '/forms.xrc.xml');
     $frame = new auiDemoDialog();
     $frame->Show();
     $frame->Center();
     $controllerFrame = new controllerDialog();
     $resource->LoadDialog($controllerFrame, NULL, 'frmController');
     $controllerFrame->SetManagedWindow($frame);
     $controllerFrame->Show();
 }