News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to re-use a frame you made with wxsmith?

Started by wobien, December 29, 2007, 12:48:10 AM

Previous topic - Next topic

wobien

I made a frame with some controls, sizers etc, using wxsmith.
Now in another project I want a similar frame. How can I import it from the old project?
I tried to add a copy of the wxs file to the new project, but it appears as a text file, I cannot edit it with wxsmith.

JGM

you have to edit the project file manually. This is an example of the lines you have to add inside the extensions tag:


<Extensions>
   <wxsmith version="1">
<gui name="wxWidgets" src="window.cpp" main="WindowFrameClass" init_handlers="necessary" language="CPP" />
   </wxsmith>
</Extensions>

wobien