X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f11f454d85f2eaabd5e2cfbba02b4cfc0b3e7088..7d532b0ceb43aaa235ba4e814599214bb905ccc9:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 14d001af79..bfb35eaa50 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -311,7 +311,7 @@ void wxTextCtrl::SetValue(const wxString& value) SetWindowText((HWND) GetHWND(), (const char *)value); } -void wxTextCtrl::SetSize(int x, int y, int width, int height, int sizeFlags) +void wxTextCtrl::DoSetSize(int x, int y, int width, int height, int sizeFlags) { int currentX, currentY; GetPosition(¤tX, ¤tY); @@ -965,14 +965,18 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) case '\\': { char c = (char)event.KeyCode(); - *this << c; + WriteText(c); } break; case WXK_RETURN: + { +/* Oh yes it will, because we also specify DLGC_WANTCHARS wxASSERT_MSG( m_windowStyle & wxTE_PROCESS_ENTER, "this text ctrl should never receive return" ); - if ( m_windowStyle & wxTE_MULTILINE == 0 ) +*/ + + if ( (m_windowStyle & wxTE_MULTILINE) == 0 ) { wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId); event.SetEventObject( this ); @@ -982,7 +986,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) //else: multiline controls need Enter for themselves break; - + } case WXK_TAB: // only produce navigation event if we don't process TAB ourself or // if it's a Shift-Tab keypress (we assume nobody will ever need @@ -1006,8 +1010,8 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) // don't just call event.Skip() because this will cause TABs and ENTERs // be passed upwards and we don't always want this - instead process it // right here - //Default(); - event.Skip(); + Default(); +// event.Skip(); } long wxTextCtrl::MSWGetDlgCode()