Added wxFrameBase::OnMenuOpen, and wxUSE_IDLEMENUUPDATES in platform.h
Experimental wxUpdateUIEvent::SetUpdateInterval() function to limit UI update frequency git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -550,6 +550,8 @@ bool wxApp::ProcessIdle()
|
||||
event.SetEventObject( this );
|
||||
ProcessEvent( event );
|
||||
|
||||
wxUpdateUIEvent::ResetUpdateTime();
|
||||
|
||||
return event.MoreRequested();
|
||||
}
|
||||
|
||||
|
@@ -220,7 +220,8 @@ void wxCheckBox::OnInternalIdle()
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWindowUI();
|
||||
if (wxUpdateUIEvent::CanUpdate())
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
wxSize wxCheckBox::DoGetBestSize() const
|
||||
|
@@ -1037,7 +1037,8 @@ void wxListBox::OnInternalIdle()
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWindowUI();
|
||||
if (wxUpdateUIEvent::CanUpdate())
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
wxSize wxListBox::DoGetBestSize() const
|
||||
|
@@ -239,7 +239,8 @@ void wxRadioButton::OnInternalIdle()
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWindowUI();
|
||||
if (wxUpdateUIEvent::CanUpdate())
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
wxSize wxRadioButton::DoGetBestSize() const
|
||||
|
@@ -673,7 +673,8 @@ void wxToolBar::OnInternalIdle()
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWindowUI();
|
||||
if (wxUpdateUIEvent::CanUpdate())
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
#endif // wxUSE_TOOLBAR_NATIVE
|
||||
|
@@ -1591,7 +1591,8 @@ void wxTextCtrl::OnInternalIdle()
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWindowUI();
|
||||
if (wxUpdateUIEvent::CanUpdate())
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
wxSize wxTextCtrl::DoGetBestSize() const
|
||||
|
@@ -166,7 +166,8 @@ void wxToggleButton::OnInternalIdle()
|
||||
gdk_window_set_cursor(win, cursor.GetCursor());
|
||||
}
|
||||
|
||||
UpdateWindowUI();
|
||||
if (wxUpdateUIEvent::CanUpdate())
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
// wxSize DoGetBestSize() const
|
||||
|
@@ -3022,7 +3022,8 @@ void wxWindowGTK::OnInternalIdle()
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWindowUI();
|
||||
if (wxUpdateUIEvent::CanUpdate())
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
void wxWindowGTK::DoGetSize( int *width, int *height ) const
|
||||
|
Reference in New Issue
Block a user