// wxWizardPage
// ----------------------------------------------------------------------------
+void wxWizardPage::Init()
+{
+ m_bitmap = wxNullBitmap;
+}
+
wxWizardPage::wxWizardPage(wxWizard *parent,
const wxBitmap& bitmap,
const wxChar *resource)
- : wxPanel(parent)
{
+ Create(parent, bitmap, resource);
+}
+
+bool wxWizardPage::Create(wxWizard *parent,
+ const wxBitmap& bitmap,
+ const wxChar *resource)
+{
+ if ( !wxPanel::Create(parent, -1) )
+ return FALSE;
+
if ( resource != NULL )
{
-#if wxUSE_RESOURCES
+#if wxUSE_WX_RESOURCES
if ( !LoadFromResource(this, resource) )
{
wxFAIL_MSG(wxT("wxWizardPage LoadFromResource failed!!!!"));
#endif // wxUSE_RESOURCES
}
- m_PageBitmap = bitmap;
+ m_bitmap = bitmap;
// initially the page is hidden, it's shown only when it becomes current
Hide();
+
+ return TRUE;
}
// ----------------------------------------------------------------------------
{
m_posWizard = pos;
m_bitmap = bitmap ;
+
// just create the dialog itself here, the controls will be created in
// DoCreateControls() called later when we know our final size
m_page = (wxWizardPage *)NULL;