]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicdgg.cpp
Added a test to wxSocket sample (client side socket event test)
[wxWidgets.git] / src / generic / choicdgg.cpp
index 608fec4009ea445f66df652810f72b9e82587c9e..5f82eb8ae093444a367b13cebbb92445cb2f0b5e 100644 (file)
@@ -264,10 +264,11 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent),
     // 4) buttons
     topsizer->Add( CreateButtonSizer( wxOK|wxCANCEL ), 0, wxCENTRE | wxALL, 10 );
 
+    SetAutoLayout( TRUE );
+    SetSizer( topsizer );
+    
     topsizer->SetSizeHints( this );
     topsizer->Fit( this );
-    SetSizer( topsizer );
-    SetAutoLayout( TRUE );
 
     Centre( wxBOTH );