For efficiency reasons, text controls no longer set the string for each text updated event, but rather query for the string value only when GetString is called from an event handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -484,7 +484,6 @@ void wxTextCtrl::Cut()
|
||||
GetPeer()->Cut() ;
|
||||
|
||||
wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, m_windowId);
|
||||
event.SetString( GetValue() ) ;
|
||||
event.SetEventObject( this );
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
@@ -498,7 +497,6 @@ void wxTextCtrl::Paste()
|
||||
// eventually we should add setting the default style again
|
||||
|
||||
wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, m_windowId);
|
||||
event.SetString( GetValue() ) ;
|
||||
event.SetEventObject( this );
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
@@ -907,7 +905,6 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
|
||||
key == WXK_BACK)
|
||||
{
|
||||
wxCommandEvent event1(wxEVT_COMMAND_TEXT_UPDATED, m_windowId);
|
||||
event1.SetString( GetValue() ) ;
|
||||
event1.SetEventObject( this );
|
||||
wxPostEvent(GetEventHandler(),event1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user