restored sending events from Replace/Remove/Write/AppendText() methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-10-08 23:16:53 +00:00
parent e79322ef0a
commit dd1c16314e
2 changed files with 4 additions and 3 deletions

View File

@ -231,7 +231,8 @@ protected:
// replace the contents of the selection or of the entire control with the
// given text
void DoWriteText(const wxString& text, int flags = SetValue_SelectionOnly);
void DoWriteText(const wxString& text,
int flags = SetValue_SendEvent | SetValue_SelectionOnly);
// set the selection possibly without scrolling the caret into view
void DoSetSelection(long from, long to, bool scrollCaret = true);

View File

@ -802,7 +802,7 @@ void wxTextCtrl::DoSetValue(const wxString& value, int flags)
// edit controls mostly)
if ( (value.length() > 0x400) || (value != GetValue()) )
{
DoWriteText(value, flags);
DoWriteText(value, flags /* doesn't include SelectionOnly here */);
// mark the control as being not dirty - we changed its text, not the
// user
@ -1445,7 +1445,7 @@ void wxTextCtrl::Replace(long from, long to, const wxString& value)
// Set selection and remove it
DoSetSelection(from, to, false /* don't scroll caret into view */);
DoWriteText(value, SetValue_SelectionOnly);
DoWriteText(value);
}
void wxTextCtrl::Remove(long from, long to)