Next Previous Up Top Contents Index

4.1.6 Projects for GUI applications

4.1.6.1 Creating a GUI project

First, we create the new project for our GUI application.

1. Click the New Project () button in the main window.

On the first page, we want to specify the project type.

2. Select "GUI Application (EXE)" in the Project type box.
3. Click Next.

We now move to the second page of the wizard.

Here, we want to name the project and specify a folder for its files.

4. Name the project GUI-App and choose a location for it.

The New Project wizard can set up some skeleton program code for our project, according to the project's characteristics as we specify them. Template code is not relevant for all kinds of projects--for instance, our Hello project would not have benefited from any more initial program structure than it had--but the wizard will include any that is relevant if we check the "Include any available templates" box.

5. Make sure the "Include any available templates" box is checked.
We ignore the Advanced... button again.
6. Click Next.

We now move to the third page of the wizard.

When we created the Hello project, we chose the Minimal option here, to use only the Functional-Dylan library. Our GUI application also needs to use other libraries for access to the native window system.

7. Select "Simple" in the Use Libraries box.
8. Click Next.

We now proceed through a series of pages allowing us to specify our project requirements in high-level terms, without knowing the names of specific Functional Developer API libraries.

The wizard will make our project's library definition use the right libraries and modules to do what we ask on these pages, and will include suitable template code in the project sources. Thus the Simple option is a useful way to create projects until you are more familiar with the libraries that Functional Developer offers.

The features we can specify fall into several categories. The choices available depend on the edition of Functional Developer you own. All editions offer I/O and system support, and GUI support. The Professional and Enterprise Editions also offer OLE Automation support, networking support, and database support.

On the first page we can specify the what I/O and system support we want in our project. For each option, the wizard shows which libraries the project will use.

9. Leave the default settings on this page as they are, and click Next.

The next page is for specifying GUI support details. Here, we can decide whether we want to do the window programming for the application by using DUIM, Functional Developer's high-level GUI toolkit, or by using the Win32 API libraries described in the C FFI and Win32 library reference. We want to use DUIM in this project.

10. Select "Dylan User Interface Manager (DUIM)".
11. Click Next.

Now the wizard offers different pages according to the edition of Functional Developer you own. For this example, we do not want to use any edition-specific libraries, so we will keep clicking Next until we get to the last page of the wizard, which is the same for all editions. This is the page for specifying source file headers, as we saw in Section 4.1.4 on page 64.

12. Click Next until the last page of the wizard appears.

If you made any changes to this page last time, they will have been preserved. Whenever you click Finish, the wizard saves all these headers (except Synopsis:) and some other details, and reinstates them next time you create a project. See Section 4.3 on page 73 for a list of the details that the wizard saves.

13. Make any changes you want to here, and then click Finish.

The wizard creates the new GUI-App project and opens it.


Getting Started with Functional Developer - 31 MAR 2000

Next Previous Up Top Contents Index