X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..4c200e8d87728306b219822d9c07e28526cd8649:/src/common/prntbase.cpp diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 921ae318ad..0fabb99c63 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -285,7 +285,7 @@ void wxPreviewControlBar::OnPrint(wxCommandEvent& WXUNUSED(event)) void wxPreviewControlBar::OnChar(wxKeyEvent &event) { - switch(event.KeyCode()) + switch(event.GetKeyCode()) { case WXK_NEXT: OnNext(); break; @@ -370,9 +370,9 @@ void wxPreviewControlBar::OnGoto(void) wxString strPrompt; wxString strPage; - strPrompt.Printf( _("%d...%d"), + strPrompt.Printf( wxT("%d...%d"), preview->GetMinPage(), preview->GetMaxPage()); - strPage.Printf( _("%d"), preview->GetCurrentPage() ); + strPage.Printf( wxT("%d"), preview->GetCurrentPage() ); strPage = wxGetTextFromUser( strPrompt, _("Goto Page"), strPage); @@ -467,7 +467,7 @@ void wxPreviewControlBar::CreateButtons() if (m_buttonFlags & wxPREVIEW_GOTO) { - m_gotoPageButton = new wxButton(this, wxID_PREVIEW_GOTO, wxT("Goto..."), wxPoint(x, y), + m_gotoPageButton = new wxButton(this, wxID_PREVIEW_GOTO, _("Goto..."), wxPoint(x, y), wxSize(buttonWidth, buttonHeight)); x += gap + buttonWidth; }