X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d30a0a132f1f01d8ed3a01c789fc0422b721e79..7052b16dedae79bec878ce41e4607a39a969610c:/src/generic/wizard.cpp diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index fbc3fc7d5b..91a35840b3 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -9,7 +9,7 @@ // Created: 15.08.99 // RCS-ID: $Id$ // Copyright: (c) 1999 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -44,12 +44,6 @@ #include "wx/wizard.h" -// ---------------------------------------------------------------------------- -// simple types -// ---------------------------------------------------------------------------- - -WX_DEFINE_ARRAY(wxPanel *, wxArrayPages); - // ---------------------------------------------------------------------------- // event tables and such // ---------------------------------------------------------------------------- @@ -108,10 +102,12 @@ bool wxWizardPage::Create(wxWizard *parent, if ( resource != NULL ) { #if wxUSE_WX_RESOURCES - if ( !LoadFromResource(this, resource) ) +#if 0 + if ( !LoadFromResource(this, resource) ) { wxFAIL_MSG(wxT("wxWizardPage LoadFromResource failed!!!!")); } +#endif #endif // wxUSE_RESOURCES } @@ -452,7 +448,7 @@ wxSize wxWizard::GetPageSize() const return wxSize(m_width, m_height); } -void wxWizard::OnCancel(wxCommandEvent& WXUNUSED(event)) +void wxWizard::OnCancel(wxCommandEvent& WXUNUSED(eventUnused)) { // this function probably can never be called when we don't have an active // page, but a small extra check won't hurt @@ -476,7 +472,7 @@ void wxWizard::OnBackOrNext(wxCommandEvent& event) // ask the current page first: notice that we do it before calling // GetNext/Prev() because the data transfered from the controls of the page // may change the value returned by these methods - if ( m_page && !m_page->TransferDataFromWindow() ) + if ( m_page && (!m_page->Validate() || !m_page->TransferDataFromWindow()) ) { // the page data is incorrect, don't do anything return;