Problems displaying old wxcp file in wxCrafter 2.5

Post here wxCrafter related issues / features / bugs
imalipusram
CodeLite Enthusiast
Posts: 16
Joined: Sat Sep 04, 2010 2:02 am
Genuine User: Yes
IDE Question: C++
Location: DE
Contact:

Problems displaying old wxcp file in wxCrafter 2.5

Post by imalipusram »

Updated my Xubuntu to 15.10 and had to re-install Codelite, wxCrafter, wxWidgets and Boost.

Obtained the current stable version (CodeLite 9.1.0, wxCrafter 2.5) from your website and followed the instructions.

While starting a new project in wxCrafter works fine, opening my current work (last edited with CodeLite 9.0 and wxCrafter 2.4, IIRC) is troubling me: The GUI draft in the central screen is not displayed and the preview button does not show the GUI preview either. However, I can see the tree structure of my project, edit individual widgets when selected on the tree and generate wcrafter code that compiles.

Any suggestions for how to start troubleshooting?

Thanks for your help!
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Problems displaying old wxcp file in wxCrafter 2.5

Post by DavidGH »

Hi,

Not a helpful answer, but:
I have a xubuntu 15.10 virtualbox guest that I use for testing. It had CL 9.0/wxC 2.4 installed, with a wxFrame project. I just upgraded to 9.1/2.5. The wxcp file opened normally, with all the bits visible.

I presume your missing areas really are missing, not just off the screen. You could try resizing CL, or resizing the wxC sections e.g. the tree-structure bit, just in case that triggers a re-layout.

Regards,

David
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems displaying old wxcp file in wxCrafter 2.5

Post by eranif »

Is it possible to get a copy of the offending wxcp file?

Thanks
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problems displaying old wxcp file in wxCrafter 2.5

Post by eranif »

The problem is not as described... its not really realted to wxCrafter version.
The generated XRC file is not valid - so this is why you don't get the preview

I did find the root cause (no fix yet): the generated XRC for wxGridBagSizer is broken (not something that was modified recently)
As a workaround, change all the sizer types in the tree view to user wxFlexGridSizer

To do this quickly:

- Select the 'm_tree_book_main' from the tree view
- Hit NUMPAD asterisk ('*') - it will expand all the children of this node
- Look for all wxGridBagSizer items (there should be 3-4 of them) - right click on it -> Change sizer type -> wxFlexGridSizer

Eran
Make sure you have read the HOW TO POST thread
imalipusram
CodeLite Enthusiast
Posts: 16
Joined: Sat Sep 04, 2010 2:02 am
Genuine User: Yes
IDE Question: C++
Location: DE
Contact:

Re: Problems displaying old wxcp file in wxCrafter 2.5

Post by imalipusram »

To do this quickly:

- Select the 'm_tree_book_main' from the tree view
- Hit NUMPAD asterisk ('*') - it will expand all the children of this node
- Look for all wxGridBagSizer items (there should be 3-4 of them) - right click on it -> Change sizer type -> wxFlexGridSizer
Works. Thanks for your help, Eran!

Edit: The .xrc files in question, are they DesignerPanel.xrc and myframe.xrc in ~/.codelite/wxcrafter/ ?
Post Reply