git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15225
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Implementation from now on
// --------------------------
// Implementation from now on
// --------------------------
- virtual void SetFocus();
virtual void SetWindowStyleFlag(long style);
virtual void Command(wxCommandEvent& event);
virtual void SetWindowStyleFlag(long style);
virtual void Command(wxCommandEvent& event);
long wxTextCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
{
long wxTextCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
{
+ long lRc = wxTextCtrlBase::MSWWindowProc(nMsg, wParam, lParam);
+
if ( nMsg == WM_GETDLGCODE )
{
// we always want the chars and the arrows
if ( nMsg == WM_GETDLGCODE )
{
// we always want the chars and the arrows
if ( HasFlag(wxTE_PROCESS_TAB) )
lDlgCode |= DLGC_WANTTAB;
if ( HasFlag(wxTE_PROCESS_TAB) )
lDlgCode |= DLGC_WANTTAB;
- return wxTextCtrlBase::MSWWindowProc(nMsg, wParam, lParam);
-}
-
-void wxTextCtrl::SetFocus()
-{
- wxTextCtrlBase::SetFocus();
-
- // to be consistent with the standard Windows behaviour we select all text
- // in the single line edit controls when the user TABs to them and also, to
- // be consistent with this behaviour in turn, do it whenever SetFocus() is
- // called as well
- if ( !HasFlag(wxTE_MULTILINE) )
- {
- SetSelection(-1, -1);
- }
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------