Added UpdateSize to wxSplitterWindow, to allow an app
to force pane resizing _before_ showing the window. Added a call to UpdateSize from helpfrm.cpp. Without this, the flicker is horrible. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -801,6 +801,16 @@ void wxSplitterWindow::SetSashPosition(int position, bool redraw)
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure the child window sizes are updated. This is useful
|
||||
// for reducing flicker by updating the sizes before a
|
||||
// window is shown, if you know the overall size is correct.
|
||||
void wxSplitterWindow::UpdateSize()
|
||||
{
|
||||
m_checkRequestedSashPosition = true;
|
||||
SizeWindows();
|
||||
m_checkRequestedSashPosition = false;
|
||||
}
|
||||
|
||||
bool wxSplitterWindow::DoSendEvent(wxSplitterEvent& event)
|
||||
{
|
||||
return !GetEventHandler()->ProcessEvent(event) || event.IsAllowed();
|
||||
|
Reference in New Issue
Block a user