Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: pdsonic on July 17, 2008, 05:15:17 am

Title: How do I convert wxSmith .wxs files to .xrc ?
Post by: pdsonic on July 17, 2008, 05:15:17 am
G'Day,

I'm a great fan of Codeblocks and wxSmith and have been using it (them) for well over a year (if not two years) full time.

For our project I used wxSmith to create over 20 wPanels (each with many components), used as pages in multilevel notebooks. Recently I discovered the Xrc file option when creating a new wxFrame and I like it.

I would like to convert the 20+ existing .wxs files into .xrc files...
(I know that even for .xrc files there still is a .wxs file, but it is rather empty)

It would take me weeks to hand convert this.

Any help would be much appreciated.

pdsonic.
Title: Re: How do I convert wxSmith .wxs files to .xrc ?
Post by: jens on July 17, 2008, 06:48:35 am
Have you read this thread : http://forums.codeblocks.org/index.php/topic,7620.0.html (http://forums.codeblocks.org/index.php/topic,7620.0.html) ?
Title: Re: How do I convert wxSmith .wxs files to .xrc ?
Post by: jens on July 17, 2008, 07:47:30 am
I never tried that before, but I just tried it out with a very simple project, including two frames (the mainFrame with a wxCheckListBox and a wxButton that opens the other frame, that contains a bitmap).

The only additional things I had to do (besides what byo said in the post), were to open "wxSmith -> Configure wxSmith for current project" and add the two newly created xrc-files as automatically loaded resources and renew the binding for the button-clicked event to the appropriate function-call cause it got lost.
Title: Re: How do I convert wxSmith .wxs files to .xrc ?
Post by: pdsonic on July 18, 2008, 02:18:51 am
Thanks Jens.

I had not read that topic yet. But I have now.

I'll try it out.



 pdsonic