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:
parent
e79322ef0a
commit
dd1c16314e
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user