Author Topic: How do I convert wxSmith .wxs files to .xrc ?  (Read 5471 times)

Offline pdsonic

  • Multiple posting newcomer
  • *
  • Posts: 17
How do I convert wxSmith .wxs files to .xrc ?
« 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: How do I convert wxSmith .wxs files to .xrc ?
« Reply #1 on: July 17, 2008, 06:48:35 am »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: How do I convert wxSmith .wxs files to .xrc ?
« Reply #2 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.

Offline pdsonic

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: How do I convert wxSmith .wxs files to .xrc ?
« Reply #3 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