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
This commit is contained in:
Vadim Zeitlin
2002-09-14 21:37:28 +00:00
parent 2499871095
commit e52d9c784e

View File

@@ -1312,8 +1312,14 @@ long wxTextCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
else // !editable else // !editable
{ {
// when the control can't be edited by user, it doesn't need any // when the control can't be edited by user, it doesn't need any
// extra keys at all // extra keys changing its contents at all -- but it still needs
lRc = 0; // 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;
} }
} }