Use wxWindowUpdateLocker to speed up updates of the static widgets sample page.
See #13619. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3a6b6a9889
commit
c052f780a4
@ -41,6 +41,7 @@
|
||||
|
||||
#include "wx/statline.h"
|
||||
#include "wx/generic/stattextg.h"
|
||||
#include "wx/wupdlock.h"
|
||||
|
||||
#include "widgets.h"
|
||||
#include "icons/statbox.xpm"
|
||||
@ -376,6 +377,8 @@ void StaticWidgetsPage::Reset()
|
||||
|
||||
void StaticWidgetsPage::CreateStatic()
|
||||
{
|
||||
wxWindowUpdateLocker lock(this);
|
||||
|
||||
bool isVert = m_chkVert->GetValue();
|
||||
|
||||
if ( m_sizerStatBox )
|
||||
|
Loading…
Reference in New Issue
Block a user