]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/static.cpp
eliminate possibility of configure enabling gnomeprint with GTK3
[wxWidgets.git] / samples / widgets / static.cpp
index a2a363c6d5e60c95223eb508d2524b4358a0ca25..58a2d0610ecefd34201c8017e39f2e13b7ab91f1 100644 (file)
@@ -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 )