void wxPreviewControlBar::OnChar(wxKeyEvent &event)
{
- switch(event.KeyCode())
+ switch(event.GetKeyCode())
{
case WXK_NEXT:
OnNext(); break;
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);
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;
}