コード例 #1
0
 /**
  * Initializes a new instance of the MyFrame1 class.
  * @param type $parent
  */
 function __construct($parent = null)
 {
     parent::__construct($parent, wxID_ANY, "Menu", wxDefaultPosition, new wxSize(230, 300), wxDEFAULT_FRAME_STYLE | wxTAB_TRAVERSAL);
     $this->SetSizeHints(wxDefaultSize, wxDefaultSize);
     $this->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_SCROLLBAR));
     $gSizer1 = new wxGridSizer(9, 1, 0, 0);
     $gSizer2 = new wxGridSizer(1, 1, 0, 0);
     $gSizer1->Add($gSizer2, 1, wxEXPAND, 5);
     $this->m_button1 = new wxButton($this, wxID_ANY, "People", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer1->Add($this->m_button1, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
     $gSizer3 = new wxGridSizer(1, 1, 0, 0);
     $gSizer1->Add($gSizer3, 1, wxEXPAND, 5);
     $this->m_button2 = new wxButton($this, wxID_ANY, "Relationships", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer1->Add($this->m_button2, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
     $gSizer4 = new wxGridSizer(1, 1, 0, 0);
     $gSizer1->Add($gSizer4, 1, wxEXPAND, 5);
     $this->m_button3 = new wxButton($this, wxID_ANY, "Relations", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer1->Add($this->m_button3, 1, wxALL | wxALIGN_CENTER_VERTICAL | wxALIGN_CENTER_HORIZONTAL, 5);
     $gSizer5 = new wxGridSizer(1, 1, 0, 0);
     $gSizer1->Add($gSizer5, 1, wxEXPAND, 5);
     $this->m_button4 = new wxButton($this, wxID_ANY, "Exit", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer1->Add($this->m_button4, 1, wxALL | wxALIGN_CENTER_VERTICAL | wxALIGN_CENTER_HORIZONTAL, 5);
     $gSizer6 = new wxGridSizer(1, 1, 0, 0);
     $gSizer1->Add($gSizer6, 1, wxEXPAND, 5);
     $this->SetSizer($gSizer1);
     $this->Layout();
     $this->Centre(wxBOTH);
     // Connect Events
     $this->m_button1->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button1OnButtonClick"));
     $this->m_button2->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button2OnButtonClick"));
     $this->m_button3->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button3OnButtonClick"));
     $this->m_button4->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button4OnButtonClick"));
 }
コード例 #2
0
ファイル: grid.php プロジェクト: phpsong/wxphp
 public function Draw(wxGrid $grid, wxGridCellAttr $attr, wxDC $dc, wxRect $rect, $row, $col, $isSelected)
 {
     // fill the background
     $dc->SetBrush(new wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)));
     $dc->DrawRectangle($rect->GetX(), $rect->GetY(), $rect->GetWidth(), $rect->GetHeight());
     // draw a shaded rectangle to emulate a button
     $strength = 1;
     $pen = new wxPen(new wxColour(255, 255, 255), $strength);
     $dc->SetPen($pen);
     $dc->DrawLine($rect->GetLeft() + $strength - 1, $rect->GetTop() + $strength - 1, $rect->GetLeft() + $strength - 1, $rect->GetBottom() - $strength + 1);
     $dc->DrawLine($rect->GetLeft() + $strength - 1, $rect->GetTop() + $strength - 1, $rect->GetRight() - $strength, $rect->GetTop() + $strength - 1);
     $pen = new wxPen(new wxColour(0, 0, 0), $strength);
     $dc->SetPen($pen);
     $dc->DrawLine($rect->GetRight() - $strength, $rect->GetTop(), $rect->GetRight() - $strength, $rect->GetBottom());
     $dc->DrawLine($rect->GetLeft(), $rect->GetBottom(), $rect->GetRight() - $strength, $rect->GetBottom());
     // draw the button-label
     $dc->SetBackgroundMode(wxPENSTYLE_TRANSPARENT);
     $dc->SetTextForeground($attr->GetTextColour());
     $dc->SetFont($attr->GetFont());
     $dc->DrawLabel($this->label, $rect, wxALIGN_CENTER_VERTICAL | wxALIGN_CENTER_HORIZONTAL);
 }
コード例 #3
0
 /**
  * Initializes a new instance of the MyFrame4 class.
  * @param type $parent
  */
 function __construct($parent = null)
 {
     parent::__construct($parent, wxID_ANY, "Relations", wxDefaultPosition, new wxSize(715, 610), wxDEFAULT_FRAME_STYLE | wxTAB_TRAVERSAL);
     $this->SetSizeHints(wxDefaultSize, wxDefaultSize);
     $this->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_SCROLLBAR));
     $gSizer1 = new wxGridSizer(1, 2, 0, 170);
     $this->m_grid1 = new wxGrid($this, wxID_ANY, wxDefaultPosition, new wxSize(430, 570), wxHSCROLL | wxWANTS_CHARS);
     # Grid
     $this->m_grid1->CreateGrid(0, 4);
     $this->m_grid1->EnableEditing(false);
     $this->m_grid1->EnableGridLines(true);
     $this->m_grid1->EnableDragGridSize(false);
     $this->m_grid1->SetMargins(0, 0);
     # Columns
     $this->m_grid1->EnableDragColMove(false);
     $this->m_grid1->EnableDragColSize(true);
     $this->m_grid1->SetColLabelSize(30);
     $this->m_grid1->SetColLabelValue(0, "Id");
     $this->m_grid1->SetColLabelValue(1, "Person1");
     $this->m_grid1->SetColLabelValue(2, "Relationship");
     $this->m_grid1->SetColLabelValue(3, "Person2");
     $this->m_grid1->SetColLabelAlignment(wxALIGN_CENTRE, wxALIGN_CENTRE);
     # Rows
     $this->m_grid1->EnableDragRowSize(true);
     $this->m_grid1->SetRowLabelSize(0);
     $this->m_grid1->SetRowLabelAlignment(wxALIGN_CENTRE, wxALIGN_CENTRE);
     # Label Appearance
     # Cell Defaults
     $this->m_grid1->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_TOP);
     $gSizer1->Add($this->m_grid1, 0, wxALL, 5);
     $gSizer2 = new wxGridSizer(2, 1, 0, 0);
     $sbSizer1 = new wxStaticBoxSizer(new wxStaticBox($this, wxID_ANY, "Modify:"), wxVERTICAL);
     $gSizer3 = new wxGridSizer(2, 1, 0, 0);
     $gSizer7 = new wxGridSizer(1, 2, 0, 0);
     $gSizer9 = new wxGridSizer(4, 1, 0, 0);
     $this->m_staticText1 = new wxStaticText($sbSizer1->GetStaticBox(), wxID_ANY, "Person1:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText1->Wrap(-1);
     $gSizer9->Add($this->m_staticText1, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText2 = new wxStaticText($sbSizer1->GetStaticBox(), wxID_ANY, "Relationship:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText2->Wrap(-1);
     $gSizer9->Add($this->m_staticText2, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText3 = new wxStaticText($sbSizer1->GetStaticBox(), wxID_ANY, "Person2:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText3->Wrap(-1);
     $gSizer9->Add($this->m_staticText3, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $gSizer7->Add($gSizer9, 1, wxEXPAND, 5);
     $gSizer10 = new wxGridSizer(4, 1, 0, 0);
     $m_comboBox1Choices = array();
     $this->m_comboBox1 = new wxComboBox($sbSizer1->GetStaticBox(), wxID_ANY, "Combo!", wxDefaultPosition, wxDefaultSize, $m_comboBox1Choices, 0);
     $gSizer10->Add($this->m_comboBox1, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL | wxEXPAND, 5);
     $m_comboBox2Choices = array();
     $this->m_comboBox2 = new wxComboBox($sbSizer1->GetStaticBox(), wxID_ANY, "Combo!", wxDefaultPosition, wxDefaultSize, $m_comboBox2Choices, 0);
     $gSizer10->Add($this->m_comboBox2, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL | wxEXPAND, 5);
     $m_comboBox3Choices = array();
     $this->m_comboBox3 = new wxComboBox($sbSizer1->GetStaticBox(), wxID_ANY, "Combo!", wxDefaultPosition, wxDefaultSize, $m_comboBox3Choices, 0);
     $gSizer10->Add($this->m_comboBox3, 1, wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALIGN_CENTER_HORIZONTAL, 5);
     $gSizer7->Add($gSizer10, 1, wxEXPAND, 5);
     $gSizer3->Add($gSizer7, 1, wxEXPAND, 5);
     $gSizer8 = new wxGridSizer(1, 3, 0, 0);
     $this->m_button2 = new wxButton($sbSizer1->GetStaticBox(), wxID_ANY, "Add", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer8->Add($this->m_button2, 1, wxALL | wxALIGN_BOTTOM | wxALIGN_CENTER_HORIZONTAL, 5);
     $this->m_button3 = new wxButton($sbSizer1->GetStaticBox(), wxID_ANY, "Edit", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer8->Add($this->m_button3, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_BOTTOM, 5);
     $this->m_button4 = new wxButton($sbSizer1->GetStaticBox(), wxID_ANY, "Delete", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer8->Add($this->m_button4, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_BOTTOM, 5);
     $gSizer3->Add($gSizer8, 1, wxEXPAND, 5);
     $sbSizer1->Add($gSizer3, 1, wxEXPAND, 5);
     $gSizer2->Add($sbSizer1, 1, wxEXPAND, 5);
     $gSizer4 = new wxGridSizer(2, 1, 0, 0);
     $sbSizer2 = new wxStaticBoxSizer(new wxStaticBox($this, wxID_ANY, "Helper:"), wxVERTICAL);
     $gSizer6 = new wxGridSizer(1, 2, 0, 0);
     $gSizer11 = new wxGridSizer(4, 1, 0, 0);
     $this->m_staticText4 = new wxStaticText($sbSizer2->GetStaticBox(), wxID_ANY, "Person1:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText4->Wrap(-1);
     $gSizer11->Add($this->m_staticText4, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText5 = new wxStaticText($sbSizer2->GetStaticBox(), wxID_ANY, "Relationship:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText5->Wrap(-1);
     $gSizer11->Add($this->m_staticText5, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText6 = new wxStaticText($sbSizer2->GetStaticBox(), wxID_ANY, "Person2:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText6->Wrap(-1);
     $gSizer11->Add($this->m_staticText6, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $gSizer6->Add($gSizer11, 1, wxEXPAND, 5);
     $gSizer12 = new wxGridSizer(4, 1, 0, 0);
     $this->m_staticText7 = new wxStaticText($sbSizer2->GetStaticBox(), wxID_ANY, "MyLabel", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText7->Wrap(-1);
     $gSizer12->Add($this->m_staticText7, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText8 = new wxStaticText($sbSizer2->GetStaticBox(), wxID_ANY, "MyLabel", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText8->Wrap(-1);
     $gSizer12->Add($this->m_staticText8, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText9 = new wxStaticText($sbSizer2->GetStaticBox(), wxID_ANY, "MyLabel", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText9->Wrap(-1);
     $gSizer12->Add($this->m_staticText9, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $gSizer6->Add($gSizer12, 1, wxEXPAND, 5);
     $sbSizer2->Add($gSizer6, 1, wxEXPAND, 5);
     $gSizer4->Add($sbSizer2, 1, wxEXPAND, 5);
     $gSizer5 = new wxGridSizer(1, 2, 0, 0);
     $this->m_button1 = new wxButton($this, wxID_ANY, "List", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer5->Add($this->m_button1, 1, wxALL | wxALIGN_BOTTOM, 5);
     $this->m_button5 = new wxButton($this, wxID_ANY, "Close", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer5->Add($this->m_button5, 1, wxALL | wxALIGN_BOTTOM | wxALIGN_RIGHT, 5);
     $gSizer4->Add($gSizer5, 1, wxEXPAND, 5);
     $gSizer2->Add($gSizer4, 1, wxEXPAND, 5);
     $gSizer1->Add($gSizer2, 1, wxEXPAND, 5);
     $this->SetSizer($gSizer1);
     $this->Layout();
     $this->Centre(wxBOTH);
     // Connect Events
     $this->Connect(wxEVT_ACTIVATE, array($this, "MyFrame4OnActivate"));
     $this->m_grid1->Connect(wxEVT_GRID_SELECT_CELL, array($this, "m_grid1OnGridSelectCell"));
     $this->m_comboBox1->Connect(wxEVT_COMMAND_COMBOBOX_SELECTED, array($this, "m_comboBox1OnCombobox"));
     $this->m_comboBox2->Connect(wxEVT_COMMAND_COMBOBOX_SELECTED, array($this, "m_comboBox2OnCombobox"));
     $this->m_comboBox3->Connect(wxEVT_COMMAND_COMBOBOX_SELECTED, array($this, "m_comboBox3OnCombobox"));
     $this->m_button2->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button2OnButtonClick"));
     $this->m_button3->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button3OnButtonClick"));
     $this->m_button4->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button4OnButtonClick"));
     $this->m_button1->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button1OnButtonClick"));
     $this->m_button5->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button5OnButtonClick"));
 }
コード例 #4
0
 /**
  * Initializes a new instance of the MyFrame2 class.
  * @param type $parent
  */
 function __construct($parent = null)
 {
     parent::__construct($parent, wxID_ANY, "People", wxDefaultPosition, new wxSize(715, 610), wxDEFAULT_FRAME_STYLE | wxTAB_TRAVERSAL);
     $this->SetSizeHints(wxDefaultSize, wxDefaultSize);
     $this->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_SCROLLBAR));
     $gSizer1 = new wxGridSizer(1, 2, 0, 170);
     $this->m_grid1 = new wxGrid($this, wxID_ANY, wxDefaultPosition, new wxSize(430, 570), wxHSCROLL | wxVSCROLL);
     # Grid
     $this->m_grid1->CreateGrid(0, 5);
     $this->m_grid1->EnableEditing(false);
     $this->m_grid1->EnableGridLines(true);
     $this->m_grid1->EnableDragGridSize(false);
     $this->m_grid1->SetMargins(0, 0);
     # Columns
     $this->m_grid1->EnableDragColMove(false);
     $this->m_grid1->EnableDragColSize(true);
     $this->m_grid1->SetColLabelSize(30);
     $this->m_grid1->SetColLabelValue(0, "Id");
     $this->m_grid1->SetColLabelValue(1, "Name");
     $this->m_grid1->SetColLabelValue(2, "Mothername");
     $this->m_grid1->SetColLabelValue(3, "Location");
     $this->m_grid1->SetColLabelValue(4, "Birthdate");
     $this->m_grid1->SetColLabelAlignment(wxALIGN_CENTRE, wxALIGN_CENTRE);
     # Rows
     $this->m_grid1->EnableDragRowSize(true);
     $this->m_grid1->SetRowLabelSize(0);
     $this->m_grid1->SetRowLabelAlignment(wxALIGN_CENTRE, wxALIGN_CENTRE);
     # Label Appearance
     # Cell Defaults
     $this->m_grid1->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_TOP);
     $gSizer1->Add($this->m_grid1, 0, wxALL, 5);
     $gSizer2 = new wxGridSizer(2, 1, 0, 0);
     $sbSizer1 = new wxStaticBoxSizer(new wxStaticBox($this, wxID_ANY, "Modify:"), wxVERTICAL);
     $gSizer3 = new wxGridSizer(2, 1, 0, 0);
     $gSizer5 = new wxGridSizer(1, 2, 0, 0);
     $gSizer7 = new wxGridSizer(4, 1, 0, 0);
     $this->m_staticText1 = new wxStaticText($sbSizer1->GetStaticBox(), wxID_ANY, "Name:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText1->Wrap(-1);
     $gSizer7->Add($this->m_staticText1, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText2 = new wxStaticText($sbSizer1->GetStaticBox(), wxID_ANY, "Mothername:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText2->Wrap(-1);
     $gSizer7->Add($this->m_staticText2, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText3 = new wxStaticText($sbSizer1->GetStaticBox(), wxID_ANY, "Location:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText3->Wrap(-1);
     $gSizer7->Add($this->m_staticText3, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_staticText4 = new wxStaticText($sbSizer1->GetStaticBox(), wxID_ANY, "Birthdate:", wxDefaultPosition, wxDefaultSize, 0);
     $this->m_staticText4->Wrap(-1);
     $gSizer7->Add($this->m_staticText4, 1, wxALL | wxALIGN_CENTER_VERTICAL, 5);
     $gSizer5->Add($gSizer7, 1, wxEXPAND, 5);
     $gSizer8 = new wxGridSizer(4, 1, 0, 0);
     $this->m_textCtrl1 = new wxTextCtrl($sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
     $gSizer8->Add($this->m_textCtrl1, 1, wxALL | wxEXPAND | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_textCtrl2 = new wxTextCtrl($sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
     $gSizer8->Add($this->m_textCtrl2, 1, wxALL | wxEXPAND | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
     $this->m_textCtrl3 = new wxTextCtrl($sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
     $gSizer8->Add($this->m_textCtrl3, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL | wxEXPAND, 5);
     $this->m_textCtrl4 = new wxTextCtrl($sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
     $gSizer8->Add($this->m_textCtrl4, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL | wxEXPAND, 5);
     $gSizer5->Add($gSizer8, 1, wxEXPAND, 5);
     $gSizer3->Add($gSizer5, 1, wxEXPAND, 5);
     $gSizer6 = new wxGridSizer(1, 3, 0, 0);
     $this->m_button2 = new wxButton($sbSizer1->GetStaticBox(), wxID_ANY, "Add", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer6->Add($this->m_button2, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_BOTTOM, 5);
     $this->m_button3 = new wxButton($sbSizer1->GetStaticBox(), wxID_ANY, "Edit", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer6->Add($this->m_button3, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_BOTTOM, 5);
     $this->m_button4 = new wxButton($sbSizer1->GetStaticBox(), wxID_ANY, "Delete", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer6->Add($this->m_button4, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_BOTTOM, 5);
     $gSizer3->Add($gSizer6, 1, wxEXPAND, 5);
     $sbSizer1->Add($gSizer3, 1, wxEXPAND, 5);
     $gSizer2->Add($sbSizer1, 1, wxEXPAND | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
     $gSizer4 = new wxGridSizer(1, 2, 0, 0);
     $this->m_button1 = new wxButton($this, wxID_ANY, "List", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer4->Add($this->m_button1, 1, wxALL | wxALIGN_BOTTOM, 5);
     $this->m_button5 = new wxButton($this, wxID_ANY, "Close", wxDefaultPosition, wxDefaultSize, 0);
     $gSizer4->Add($this->m_button5, 1, wxALL | wxALIGN_BOTTOM | wxALIGN_RIGHT, 5);
     $gSizer2->Add($gSizer4, 1, wxEXPAND, 5);
     $gSizer1->Add($gSizer2, 1, wxEXPAND, 5);
     $this->SetSizer($gSizer1);
     $this->Layout();
     $this->Centre(wxBOTH);
     // Connect Events
     $this->Connect(wxEVT_ACTIVATE, array($this, "MyFrame2OnActivate"));
     $this->m_grid1->Connect(wxEVT_GRID_SELECT_CELL, array($this, "m_grid1OnGridSelectCell"));
     $this->m_textCtrl1->Connect(wxEVT_COMMAND_TEXT_UPDATED, array($this, "m_textCtrl1OnText"));
     $this->m_textCtrl2->Connect(wxEVT_COMMAND_TEXT_UPDATED, array($this, "m_textCtrl2OnText"));
     $this->m_textCtrl3->Connect(wxEVT_COMMAND_TEXT_UPDATED, array($this, "m_textCtrl3OnText"));
     $this->m_textCtrl4->Connect(wxEVT_COMMAND_TEXT_UPDATED, array($this, "m_textCtrl4OnText"));
     $this->m_button2->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button2OnButtonClick"));
     $this->m_button3->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button3OnButtonClick"));
     $this->m_button4->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button4OnButtonClick"));
     $this->m_button1->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button1OnButtonClick"));
     $this->m_button5->Connect(wxEVT_COMMAND_BUTTON_CLICKED, array($this, "m_button5OnButtonClick"));
 }