Now it’s time to apply what
you just learned about an application’s interaction with the
PilotMain routine, and the event loop to
an actual application. We are using OReilly Starter, the application
we first discussed in Chapter 4.
Our OReilly Starter application has two forms. On the first form, there are two buttons. Pressing the first one causes the Palm device to beep. Pressing the second button switches the view to the second form. The second form has a single button that returns to the previous form (see Figure 5-3). This is all there is to our simple application.
Here are the source files that make up this application (as opposed to the tools-specific files like CodeWarrior .mcp files or PRC-Tools .def files).
This file contains the main entry point
PilotMain) of the application. It also includes
the event loop, application startup and shutdown code, and the code
to load forms as needed.
This contains the code that handles everything that occurs in the first form.
This contains the code for the second form.
This contains some utility routines that can be used throughout the application. You can include this same source file in all your applications.
This PilRC ...