// and update the buttons state
m_btnPrev->Enable(m_page->GetPrev() != (wxWizardPage *)NULL);
- if ( btnLabelWasNext != (m_page->GetNext() != (wxWizardPage *)NULL) )
+ bool hasNext = m_page->GetNext() != (wxWizardPage *)NULL;
+ if ( btnLabelWasNext != hasNext )
{
// need to update
- m_btnNext->SetLabel(btnLabelWasNext ? _("&Finish") : _("&Next >"));
+ if (btnLabelWasNext)
+ m_btnNext->SetLabel(_("&Finish"));
+ else
+ m_btnNext->SetLabel(_("&Next >"));
}
// nothing to do: the label was already correct
return m_page;
}
+wxSize wxWizard::GetPageSize() const
+{
+ return wxSize(m_width, m_height);
+}
+
void wxWizard::OnCancel(wxCommandEvent& WXUNUSED(event))
{
// this function probably can never be called when we don't have an active