# Generate Menu

When you are satisfied that your design is complete, you can generate source code and X resource files for it.

The principal source languages you can generate are C, C++ and UIL. Complementary X resource files, Callback stubs, External declarations, XPM format pixmap files and C to initialize and call UIL can also be generated.

X resource files contain resource data which is loaded at run-time: they are normally installed in /usr/openwin/lib/app-defaults.

In Microsoft Windows mode, you may also generate a Microsoft Windows resource file. If you have created any pixmaps, these will be automatically converted into Microsoft Windows Bitmaps or Icons (depending on whether the selected widget is a Button or Label respectively) at this time. Each one is written into a separate file using the name of the pixmap object as the filename.

You will be asked for the name of a file to hold the generated code. It is possible to generate a C main module as part of the generation. This is useful if you want to compile and run immediately. Often, you will provide your own main program to perform initialization tasks not related to the user interface, such as opening a database.

You can also ask to generate Makefiles to enable you to build your application.

See also:

- Callbacks
- Code Generation
- Generate dialog
- Module Preludes
- Microsoft Windows Mode
- About WorkShop Visual