]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/dialogs.cpp
Don't use wxWindow::ClearBackground() in the image sample and explain why.
[wxWidgets.git] / samples / dialogs / dialogs.cpp
index 209b051245c195cd1f11e0e6309d173590bb01a1..d151f571ef9d355bf156c86615808dbfd3e9f3a2 100644 (file)
@@ -2561,6 +2561,9 @@ TestMessageBoxDialog::TestMessageBoxDialog(wxWindow *parent)
 
 
     // this one is for configuring the buttons
+    wxSizer * const
+    sizerBtnsBox = new wxStaticBoxSizer(wxVERTICAL, this, "&Buttons");
+    
     wxFlexGridSizer * const sizerBtns = new wxFlexGridSizer(2, 5, 5);
     sizerBtns->AddGrowableCol(1);
 
@@ -2582,8 +2585,6 @@ TestMessageBoxDialog::TestMessageBoxDialog(wxWindow *parent)
                              this);
     }
 
-    wxSizer * const
-        sizerBtnsBox = new wxStaticBoxSizer(wxVERTICAL, this, "&Buttons");
     sizerBtnsBox->Add(sizerBtns, wxSizerFlags(1).Expand());
     sizerTop->Add(sizerBtnsBox, wxSizerFlags().Expand().Border());
 
@@ -2599,8 +2600,8 @@ TestMessageBoxDialog::TestMessageBoxDialog(wxWindow *parent)
         "&Error icon"
     };
 
-    wxCOMPILE_TIME_ASSERT( WXSIZEOF(icons) == MsgDlgIcon_Max, IconMismatch );
-
+   wxCOMPILE_TIME_ASSERT( WXSIZEOF(icons) == MsgDlgIcon_Max, IconMismatch );
+   
     m_icons = new wxRadioBox(this, wxID_ANY, "&Icon style",
                              wxDefaultPosition, wxDefaultSize,
                              WXSIZEOF(icons), icons,