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:
@@ -490,6 +490,13 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id,
|
||||
}
|
||||
}
|
||||
|
||||
// Reduce flicker by updating the splitter pane sizes before the
|
||||
// frame is shown
|
||||
wxSizeEvent sizeEvent(GetSize(), GetId());
|
||||
ProcessEvent(sizeEvent);
|
||||
|
||||
m_Splitter->UpdateSize();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user