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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user