Hi! You'll have to use wxWizard::SetPageSize. I'd recommend to calculate the minimal size for all pages, meaning the size of the biggest page and then set it. A function for is could be
void Wizard::ComputeAndSetSize(wxWizardPage* startPagePtr)
{
wxSize size = startPagePtr->GetBestSize();
for(wxWizardPage* pPtr = startPagePtr->GetNext(); pPtr; pPtr = pPtr->GetNext())
{
wxSize tmpSize = pPtr->GetBestSize();
if(tmpSize.GetHeight() > size.GetHeight())
size.SetHeight(tmpSize.GetHeight());
if(tmpSize.GetWidth() > size.GetWidth())
size.SetWidth(tmpSize.GetWidth());
}
SetPageSize(size);
}
where Wizard is a class derived from wxWizard.
upcaseupCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |