attempt to keep the number of control updates lower during idle times
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1757,12 +1757,18 @@ void wxWindowBase::UpdateWindowUI()
|
|||||||
#if wxUSE_TEXTCTRL
|
#if wxUSE_TEXTCTRL
|
||||||
wxTextCtrl *text = wxDynamicCast(control, wxTextCtrl);
|
wxTextCtrl *text = wxDynamicCast(control, wxTextCtrl);
|
||||||
if ( text )
|
if ( text )
|
||||||
|
{
|
||||||
|
if ( event.GetText() != text->GetValue() )
|
||||||
text->SetValue(event.GetText());
|
text->SetValue(event.GetText());
|
||||||
|
}
|
||||||
else
|
else
|
||||||
#endif // wxUSE_TEXTCTRL
|
#endif // wxUSE_TEXTCTRL
|
||||||
|
{
|
||||||
|
if ( event.GetText() != control->GetLabel() )
|
||||||
control->SetLabel(event.GetText());
|
control->SetLabel(event.GetText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#if wxUSE_CHECKBOX
|
#if wxUSE_CHECKBOX
|
||||||
wxCheckBox *checkbox = wxDynamicCastThis(wxCheckBox);
|
wxCheckBox *checkbox = wxDynamicCastThis(wxCheckBox);
|
||||||
|
Reference in New Issue
Block a user