Send EVT_TEXT from wxTextCtrl::SetValue to conform with the wx standard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e505d15e07
commit
e8b4fd4bc1
@ -433,6 +433,11 @@ void wxTextCtrl::SetValue(const wxString& str)
|
||||
return ;
|
||||
|
||||
GetPeer()->SetStringValue(str) ;
|
||||
|
||||
wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, m_windowId);
|
||||
event.SetString( GetValue() ) ;
|
||||
event.SetEventObject( this );
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetMaxLength(unsigned long len)
|
||||
|
Loading…
Reference in New Issue
Block a user