Page 1 of 1

Problems displaying old wxcp file in wxCrafter 2.5

Posted: Thu Feb 18, 2016 8:03 am
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!

Re: Problems displaying old wxcp file in wxCrafter 2.5

Posted: Thu Feb 18, 2016 2:23 pm
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

Re: Problems displaying old wxcp file in wxCrafter 2.5

Posted: Thu Feb 18, 2016 5:43 pm
by eranif
Is it possible to get a copy of the offending wxcp file?

Thanks
Eran

Re: Problems displaying old wxcp file in wxCrafter 2.5

Posted: Sat Feb 20, 2016 4:05 pm
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

Re: Problems displaying old wxcp file in wxCrafter 2.5

Posted: Tue Feb 23, 2016 11:37 am
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/ ?