// -*- C++ -*- generated by wxGlade 0.3.3 on Thu Jul 01 17:50:44 2004 #include "foo.h" MyFrame1::MyFrame1(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): wxFrame(parent, id, title, pos, size, wxDEFAULT_FRAME_STYLE) { // begin wxGlade: MyFrame1::MyFrame1 const wxString choice_1_choices[] = { }; choice_1 = new wxChoice(this, -1, wxDefaultPosition, wxDefaultSize, 0, choice_1_choices, 0); button_1 = new wxButton(this, -1, wxT("OK")); set_properties(); do_layout(); // end wxGlade } void MyFrame1::set_properties() { // begin wxGlade: MyFrame1::set_properties SetTitle(wxT("frame_2")); SetSize(wxSize(357, 146)); SetBackgroundColour(wxColour(0, 0, 0)); choice_1->SetSelection(0); // end wxGlade } void MyFrame1::do_layout() { // begin wxGlade: MyFrame1::do_layout wxBoxSizer* sizer_1 = new wxBoxSizer(wxVERTICAL); sizer_1->Add(choice_1, 0, 0, 0); sizer_1->Add(button_1, 0, wxTOP|wxALIGN_RIGHT, 50); SetAutoLayout(true); SetSizer(sizer_1); Layout(); // end wxGlade } class MyApp: public wxApp { public: bool OnInit(); }; IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { wxInitAllImageHandlers(); MyFrame1* frame_2 = new MyFrame1(0, -1, ""); SetTopWindow(frame_2); frame_2->Show(); return true; }