Added ForceDelayedLayout

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2011-04-21 12:44:26 +00:00
parent daa3165144
commit 987695522c
2 changed files with 30 additions and 5 deletions

View File

@@ -2204,6 +2204,19 @@ void wxRichTextCtrl::OnSize(wxSizeEvent& event)
event.Skip();
}
// Force any pending layout due to large buffer
void wxRichTextCtrl::ForceDelayedLayout()
{
if (m_fullLayoutRequired)
{
m_fullLayoutRequired = false;
m_fullLayoutTime = 0;
GetBuffer().Invalidate(wxRICHTEXT_ALL);
ShowPosition(m_fullLayoutSavedPosition);
Refresh(false);
Update();
}
}
/// Idle-time processing
void wxRichTextCtrl::OnIdle(wxIdleEvent& event)