::WinSetWindowText(GetHwnd(), "");
} // end of wxTextCtrl::Clear
+bool wxTextCtrl::EmulateKeyPress(
+ const wxKeyEvent& rEvent
+)
+{
+ SetFocus();
+ return(wxTextCtrlBase::EmulateKeyPress(rEvent));
+} // end of wxTextCtrl::EmulateKeyPress
+
// ----------------------------------------------------------------------------
// Clipboard operations
// ----------------------------------------------------------------------------
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)