]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed call to obsolete (and presumably redundant) SetPageSize
authorJulian Smart <julian@anthemion.co.uk>
Mon, 28 Feb 2005 14:41:37 +0000 (14:41 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 28 Feb 2005 14:41:37 +0000 (14:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/wizard/wizard.cpp

index 514595772960ea57cf67e4a6d87147bf3bb48118..97bd411243aefde0d4de24d051296afa02567449 100644 (file)
@@ -385,7 +385,6 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event))
              _T("The next pages will present you\nwith more useless controls."),
              wxPoint(5,5)
         );
-    wxSize size = text->GetBestSize();
 
     // ... or a derived class
     wxRadioboxPage *page3 = new wxRadioboxPage(wizard);
@@ -401,7 +400,7 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event))
     page1->SetNext(page2);
     page3->SetPrev(page2);
 
-    wizard->SetPageSize(size);
+    // allow the wizard to size itself around the pages
     wizard->GetPageAreaSizer()->Add(page1);
     
     if ( wizard->RunWizard(page1) )