How to create an "Empty wxWidgets Project" templat

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 214
Joined: Wed Jun 15, 2005 3:31 am
Location: United States

How to create an "Empty wxWidgets Project" templat

Post by daddydave » Tue Jul 19, 2005 3:30 am

How to create an "Empty wxWidgets Project" template in wx-devcpp
(response to leo128 in the wx-devcpp announcement thread).

The goal of these instructions is to be able to open a new wxwidgets project with the appropriate linker and compiler options, but without having any files automatically created for you for use with the wxdsgn Form Designer. That way, you have the flexibility to create either type of project, or add the wxdsgn forms later on.

Find the wx-devcpp templates folder, if you installed to the default location, it is C:\Dev-cpp\Templates. There is a file for a frame project template file called 00-wxWidgets.template. Make a copy of it in the same folder with a new name (I think I called mine 40-wxWidgets-Empty.template.) This will have all your compile, link options from the wx-devcpp wxdsgn Form Designer frame and dialog projects but without the files. There are only a couple of lines to edit in this text file, Name and Description. Change those lines to "Name=Empty wxWidgets Project" and "Description=An empty project for wxWidgets applications."

Then do File > New > Project... in wx-devcpp and you should have a new choice, Empty wxWidgets project.

My 40-wxWidgets-Empty.template looks like this (except for the Name and Description lines, it is identical to the original):

Name=Empty wxWidgets Project
Description=An empty project for wxWidgets applications.

[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@_
[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@_
Name=wxWindows Project
[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@_

It wraps in the forum, but I was able to copy and paste the above into Notepad with wrapping turned off, and it looked OK (the long lines should not be wrapping).

In need of some credit
In need of some credit
Posts: 1
Joined: Tue Jul 19, 2005 8:43 pm


Post by Robjob » Tue Jul 19, 2005 8:44 pm

Thanks daddy dave :D

Post Reply