X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5bdfc69a576eb32f680f962feec04935f6e71eb..236cff7334bfd8020adc3fba134641fc7b189622:/samples/widgets/static.cpp diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index a2a363c6d5..58a2d0610e 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -41,6 +41,7 @@ #include "wx/statline.h" #include "wx/generic/stattextg.h" +#include "wx/wupdlock.h" #include "widgets.h" #include "icons/statbox.xpm" @@ -326,10 +327,8 @@ void StaticWidgetsPage::CreateContent() sizerMiddle->Add(m_textLabelWithMarkup, 0, wxEXPAND|wxALL, 5); sizerMiddle->Add(b3, 0, wxLEFT|wxBOTTOM, 5); - m_chkGreen = CreateCheckBoxAndAddToSizer(sizerLeft, + m_chkGreen = CreateCheckBoxAndAddToSizer(sizerMiddle, "Decorated label on g&reen"); - - sizerMiddle->Add(m_chkGreen, 0, wxALL, 5); #endif // wxUSE_MARKUP // final initializations @@ -378,6 +377,8 @@ void StaticWidgetsPage::Reset() void StaticWidgetsPage::CreateStatic() { + wxWindowUpdateLocker lock(this); + bool isVert = m_chkVert->GetValue(); if ( m_sizerStatBox )