]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/textctrl.cpp
wxWizardPage(Simple) can do two-phase creation now
[wxWidgets.git] / src / os2 / textctrl.cpp
index b99d13006c242d2f9bdbcbcee4bacb971bb6f0d4..f375a3888662a05ae03507ebf7dc37eaf327b822 100644 (file)
@@ -1066,6 +1066,15 @@ void wxTextCtrl::OnChar(
     rEvent.Skip();
 } // end of wxTextCtrl::OnChar
 
+void wxTextCtrl::SetFocus()
+{
+    wxTextCtrlBase::SetFocus();
+    if ( !HasFlag(wxTE_MULTILINE) )
+    {
+        SetSelection(-1, -1);
+    }
+} // end of wxTextCtrl::SetFocus
+
 bool wxTextCtrl::OS2Command(
   WXUINT                            uParam
 , WXWORD                            WXUNUSED(vId)