// 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);
// 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
// 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)