generate a text event even if SetValue() didn't really chaneg anything
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -533,6 +533,11 @@ void wxTextCtrl::SetValue(const wxString& value)
|
||||
{
|
||||
DoWriteText(value, FALSE /* not selection only */);
|
||||
}
|
||||
else // same text
|
||||
{
|
||||
// still send an event for consistency
|
||||
SendUpdateEvent();
|
||||
}
|
||||
|
||||
// we should reset the modified flag even if the value didn't really change
|
||||
|
||||
|
Reference in New Issue
Block a user