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:
@@ -41,6 +41,7 @@
|
|||||||
|
|
||||||
#include "wx/statline.h"
|
#include "wx/statline.h"
|
||||||
#include "wx/generic/stattextg.h"
|
#include "wx/generic/stattextg.h"
|
||||||
|
#include "wx/wupdlock.h"
|
||||||
|
|
||||||
#include "widgets.h"
|
#include "widgets.h"
|
||||||
#include "icons/statbox.xpm"
|
#include "icons/statbox.xpm"
|
||||||
@@ -376,6 +377,8 @@ void StaticWidgetsPage::Reset()
|
|||||||
|
|
||||||
void StaticWidgetsPage::CreateStatic()
|
void StaticWidgetsPage::CreateStatic()
|
||||||
{
|
{
|
||||||
|
wxWindowUpdateLocker lock(this);
|
||||||
|
|
||||||
bool isVert = m_chkVert->GetValue();
|
bool isVert = m_chkVert->GetValue();
|
||||||
|
|
||||||
if ( m_sizerStatBox )
|
if ( m_sizerStatBox )
|
||||||
|
Reference in New Issue
Block a user