// -*- C++ -*- // // generated by wxGlade 327f789145e7+ on Thu Jul 16 21:53:36 2015 // // Example for compiling a single file project under Linux using g++: // g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp // // Example for compiling a multi file project under Linux using g++: // g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp // #include "bug166.h" // begin wxGlade: ::extracode // end wxGlade MyFrame::MyFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): wxFrame(parent, id, title, pos, size, style) { // begin wxGlade: MyFrame::MyFrame const wxString choice_1_choices[] = { wxT("Pure ASCII"), wxT("German Umlauts äöüÄÖÜß"), }; choice_1 = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 2, choice_1_choices); label_1 = new wxStaticText(this, wxID_ANY, wxT("German Umlauts äöüÄÖÜß"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER); set_properties(); do_layout(); // end wxGlade } void MyFrame::set_properties() { // begin wxGlade: MyFrame::set_properties SetTitle(wxT("frame_1")); choice_1->SetSelection(1); // end wxGlade } void MyFrame::do_layout() { // begin wxGlade: MyFrame::do_layout wxBoxSizer* sizer_1 = new wxBoxSizer(wxVERTICAL); wxBoxSizer* sizer_2 = new wxBoxSizer(wxVERTICAL); sizer_2->Add(choice_1, 1, wxALL|wxEXPAND, 5); sizer_2->Add(label_1, 1, wxALL|wxEXPAND, 5); sizer_1->Add(sizer_2, 1, 0, 0); SetSizer(sizer_1); sizer_1->Fit(this); Layout(); // end wxGlade } class MyApp: public wxApp { public: bool OnInit(); }; IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { wxInitAllImageHandlers(); MyFrame* frame_1 = new MyFrame(NULL, wxID_ANY, wxEmptyString); SetTopWindow(frame_1); frame_1->Show(); return true; }