#pragma hdrstop
#endif
+#if wxUSE_WIZARDDLG
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/intl.h"
// event tables and such
// ----------------------------------------------------------------------------
+DEFINE_EVENT_TYPE(wxEVT_WIZARD_PAGE_CHANGED)
+DEFINE_EVENT_TYPE(wxEVT_WIZARD_PAGE_CHANGING)
+DEFINE_EVENT_TYPE(wxEVT_WIZARD_CANCEL)
+
BEGIN_EVENT_TABLE(wxWizard, wxDialog)
EVT_BUTTON(wxID_CANCEL, wxWizard::OnCancel)
EVT_BUTTON(-1, wxWizard::OnBackOrNext)
bool btnLabelWasNext = TRUE;
// and this tells us whether we already had the default bitmap before
- bool bmpWasDefault = TRUE;
+ int bmpWasDefault;
if ( m_page )
{
btnLabelWasNext = m_page->GetNext() != (wxWizardPage *)NULL;
bmpWasDefault = !m_page->GetBitmap().Ok();
}
+ else // no previous page
+ {
+ // always set the bitmap
+ bmpWasDefault = -1;
+ }
// set the new one
m_page = page;
m_page->Show();
// change the bitmap if necessary (and if we have it at all)
- bool bmpIsDefault = !m_page->GetBitmap().Ok();
+ int bmpIsDefault = !m_page->GetBitmap().Ok();
if ( m_statbmp && (bmpIsDefault != bmpWasDefault) )
{
wxBitmap bmp;
m_direction = direction;
}
+#endif // wxUSE_WIZARDDLG