User forums > Help

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

(1/1)

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:


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

--- End code ---

wobien:
OK, that works, thank you.

Navigation

[0] Message Index

Go to full version