X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07850a495081697fe2825eafb656926c676aa279..33971536c5f047ee95ec7376fd84b5f7054c05e1:/samples/erase/erase.cpp?ds=inline diff --git a/samples/erase/erase.cpp b/samples/erase/erase.cpp index 166f7e1008..cd9c9f8ac2 100644 --- a/samples/erase/erase.cpp +++ b/samples/erase/erase.cpp @@ -198,9 +198,9 @@ void MyCanvas::OnChar( wxKeyEvent &event ) case WXK_RIGHT: m_text += wxT( "" ); break; case WXK_DOWN: m_text += wxT( "" ); break; case WXK_RETURN: m_text += wxT( "" ); break; - default: m_text += event.m_keyCode; break; + default: m_text += (wxChar)event.m_keyCode; break; } - + } void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) @@ -215,7 +215,7 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) dc.SetTextForeground(*wxBLUE); dc.DrawText(_T("This text is drawn from OnPaint"), 65, 65); - + wxString tmp; tmp.Printf( _T("Hit any key to display more text: %s"), m_text.c_str() ); int w,h;