From: Vadim Zeitlin Date: Sat, 14 Sep 2002 21:37:28 +0000 (+0000) Subject: we do want arrows even in a read only text ctrl X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e52d9c784ed95b099017cca9301b325085c7f4d1 we do want arrows even in a read only text ctrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 319c02499f..9cb0a4f03a 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -1312,8 +1312,14 @@ long wxTextCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) else // !editable { // when the control can't be edited by user, it doesn't need any - // extra keys at all - lRc = 0; + // extra keys changing its contents at all -- but it still needs + // the arrows to allow navigating in it + // + // NB: use "=", not "|=" as the base class version returns the + // same flags is this state as usual (i.e. including + // DLGC_WANTMESSAGE). This is strange (how does it work in the + // native Win32 apps?) but for now live with it. + lRc = DLGC_WANTARROWS; } }