]> git.saurik.com Git - wxWidgets.git/commitdiff
we do want arrows even in a read only text ctrl
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Sep 2002 21:37:28 +0000 (21:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Sep 2002 21:37:28 +0000 (21:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 319c02499ff04dd779b01283ef5901a6a59f9371..9cb0a4f03ae5dfbd4f4f09edca43144c56b19e94 100644 (file)
@@ -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;
         }
     }