User forums > Help
Truncated new project wizard
stahta01:
I have the same problem will look and verify that I am running the newest 2.8 cvs branch, will also see if problem exists under 2.9 cvs head.
Tim S
jfpjr:
void Wiz::Finalize()
{
// chain pages
for (size_t i = 1; i < m_Pages.GetCount(); ++i)
wxWizardPageSimple::Chain(m_Pages[i - 1], m_Pages);
// allow the wizard to size itself around the pages
#if wxCHECK_VERSION(2, 8, 0)
m_pWizard->GetPageAreaSizer()->Add(m_Pages[0]);
#else
for (size_t i = 1; i < m_Pages.GetCount(); ++i)
m_pWizard->GetPageAreaSizer()->Add(m_Pages);
#endif
m_pWizard->Fit();
}
This is the fix for the Project wizard.....
stahta01:
Patch code version of above fix, I have tested it and it worked for me.
Tim S
--- Code: ---Index: src/plugins/scriptedwizard/wiz.cpp
===================================================================
--- src/plugins/scriptedwizard/wiz.cpp (revision 3589)
+++ src/plugins/scriptedwizard/wiz.cpp (working copy)
@@ -1009,8 +1009,12 @@
wxWizardPageSimple::Chain(m_Pages[i - 1], m_Pages[i]);
// allow the wizard to size itself around the pages
- for (size_t i = 1; i < m_Pages.GetCount(); ++i)
- m_pWizard->GetPageAreaSizer()->Add(m_Pages[i]);
+ #if wxCHECK_VERSION(2, 8, 0)
+ m_pWizard->GetPageAreaSizer()->Add(m_Pages[0]);
+ #else
+ for (size_t i = 1; i < m_Pages.GetCount(); ++i)
+ m_pWizard->GetPageAreaSizer()->Add(m_Pages[i]);
+ #endif
m_pWizard->Fit();
}
--- End code ---
arst:
Hello again,
Patch applied, this worked nicely.
I hope the fix makes it into svn soon.
Thanks!
// Arst
stahta01:
Uploaded 2.8 patch to
[ Patch #1880 ] Truncated new project scripted wizard fix for wxW28
https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1880&group_id=5358
I was not sure who to grant credit to so I just said I did NOT write the patch.
Tim S
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version