News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Truncated new project wizard

Started by arst, February 08, 2007, 09:54:01 AM

Previous topic - Next topic

arst

Hello,

I'm using a CB version compiled on my own machine
(rev 3557, WinXp).

When opening the New Project wizard, the dialog
is 'cut', so that only the left side with the splash
image is shown. All options, & info (on the right)
are 'cut off' from the dialog.

I have a downloaded 'precompiled' version CB in
another directory. It displays the New Project wizard
correctly.

I've gone over the resource files in the two directories,
and they are identical.

Ideas on fixes?

Thanks,
// Arst


[attachment deleted by admin]

Biplab

Most probably the compilation of Code::Blocks was not perfect. The First Page of wizard is not called from the wizard's resource file. If you try with other wizard, it'll also give you same problem.

Did you run the update.bat file after compilation?? I think this could be the reason.

Regards,

Biplab
Be a part of the solution, not a part of the problem.

arst

I had not run update.bat, so I did. No change, still truncated
Wizard dialog.

So I rebuilt project. And removed the environment var
CODEBLOCKS_DATA_DIR (to make sure it was locating
resources locally). No change.

I execute from both the devel and output directory. Still
truncated dialog.

It has been like this for the last 3 versions I've downloaded
from SVN (Jan+Feb).

Ideas?


Biplab

It's weird. I've never faced it.

May be something strange.  :)
Be a part of the solution, not a part of the problem.

Pecan

Quote from: arst on February 08, 2007, 09:54:01 AM
Hello,

I'm using a CB version compiled on my own machine
(rev 3557, WinXp).

When opening the New Project wizard, the dialog
is 'cut', so that only the left side with the splash
image is shown. All options, & info (on the right)
are 'cut off' from the dialog.

I have a downloaded 'precompiled' version CB in
another directory. It displays the New Project wizard
correctly.

I've gone over the resource files in the two directories,
and they are identical.

Ideas on fixes?

Thanks,
// Arst


If you clicked on "don't show this page" in the wizard it used to cause this problem.

Re-run update.bat and accept the wizard splash pages as is and see if the problem goes away.

Just a guess.

mandrav

Since you compiled it yourself, you should give us some more info.
E.g. what wx version did you use to compile C::B??? (we officially support 2.6.x)
Be patient!
This bug will be fixed soon...

arst

More info: WxWidgets 2.8 (works just fine otherwise apart from
compiler warnings). It is Svn version 3557.

I rerun update.bat also. No change.

When I run CB downloaded as a binary from Nightly, the project
wizard comes out right.

OK
// Arst

arst

I checked around for option: "don't show this page", and since
I never get the full dialog, I cannot see it.

All project types behaves this way.

I could very well have checked this box at an earlier time.

OK
// Arst

Pecan

Quote from: arst on February 08, 2007, 01:49:11 PM
I checked around for option: "don't show this page", and since
I never get the full dialog, I cannot see it.

All project types behaves this way.

I could very well have checked this box at an earlier time.

OK
// Arst


You could rename your default.conf and start a new one to see if the wizard corrects itself.

mandrav

QuoteMore info: WxWidgets 2.8

There's a patch for this issue with wx2.8. It's either in the forums or the patch tracker (can't recall now, sorry).
Be patient!
This bug will be fixed soon...

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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

#12
Patch code version of above fix, I have tested it and it worked for me.
Tim S

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();
}
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]