X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1f9e3ec5d8f3c0bb5bfe558f5ecb35b994383eb..22bfe96ca6b7248ab8161ec97963bca8e3be963e:/samples/mobile/styles/styles.cpp diff --git a/samples/mobile/styles/styles.cpp b/samples/mobile/styles/styles.cpp index cf72c73786..cd92e50fe5 100644 --- a/samples/mobile/styles/styles.cpp +++ b/samples/mobile/styles/styles.cpp @@ -38,42 +38,44 @@ MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title, // Create menu and status bar. CreateMyMenuBar(); CreateStatusBar(1); - SetStatusText( "Welcome to Styles!" ); + SetStatusText( _T("Welcome to Styles!") ); wxImage image; - image.LoadFile( "marble.jpg", wxBITMAP_TYPE_JPEG ); + image.LoadFile( _T("marble.jpg"), wxBITMAP_TYPE_JPEG ); wxBitmap bitmap( image ); +#ifdef __WXUNIVERSAL__ SetBackground( bitmap, 0, wxTILE ); +#endif - new wxStaticText( this, -1, "This is text", wxPoint( 20,50 ) ); + new wxStaticText( this, -1, _T("This is text"), wxPoint( 20,50 ) ); - new wxCheckBox( this, -1, "This is a checkbox", wxPoint( 20,70 ) ); + new wxCheckBox( this, -1, _T("This is a checkbox"), wxPoint( 20,70 ) ); } void MyFrame::CreateMyMenuBar() { wxMenu *file_menu = new wxMenu; - file_menu->Append( ID_ABOUT, "About...", "Program info" ); + file_menu->Append( ID_ABOUT, _T("About..."), _T("Program info") ); file_menu->AppendSeparator(); - file_menu->Append( ID_QUIT, "Quit...", "Quit program" ); + file_menu->Append( ID_QUIT, _T("Quit..."), _T("Quit program") ); wxMenuBar *menu_bar = new wxMenuBar(); - menu_bar->Append( file_menu, "&File" ); + menu_bar->Append( file_menu, _T("&File") ); SetMenuBar( menu_bar ); } -void MyFrame::OnAbout( wxCommandEvent &event ) +void MyFrame::OnAbout( wxCommandEvent &WXUNUSED(event) ) { } -void MyFrame::OnQuit( wxCommandEvent &event ) +void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) ) { Close( TRUE ); } -void MyFrame::OnCloseWindow( wxCloseEvent &event ) +void MyFrame::OnCloseWindow( wxCloseEvent &WXUNUSED(event) ) { Destroy(); } @@ -92,10 +94,10 @@ bool MyApp::OnInit() { wxInitAllImageHandlers(); - SetVendorName("Free world"); - SetAppName("Styles"); + SetVendorName(_T("Free world")); + SetAppName(_T("Styles")); - MyFrame *frame = new MyFrame( NULL, -1, "Styles", wxPoint(20,20), wxSize(500,340) ); + MyFrame *frame = new MyFrame( NULL, -1, _T("Styles"), wxPoint(20,20), wxSize(500,340) ); frame->Show( TRUE ); return TRUE;