Sales Application Forms and Form Objects

Now that we have all the specific information about form objects, it is time to add many of them and the rest of the forms to the Sales application. We’ll show you the resource definitions of all the forms and form objects and then look at the code.

We cover the forms and the code for them in order of increasing complexity. The following list shows you our order and which types of forms and form objects are implemented in each form.

Edit Customer form

The new addition is fields, as well as some buttons and checkboxes.

Item Details form

The new items are a label, a pop-up trigger that has a list associated with it, and a Graffiti Shift Indicator. There are also buttons and fields.

Customers form

The only object in the form is a list.

Order form

This form contains a series of pop-up triggers and fields that are associated with them.

In each implementation we show you any definitions, resources (shown in text in PilRC format), and necessary code.

After dealing with these various forms and form objects we also need to make sure our application navigates between our various forms and dialog boxes correctly. This is taken care of in our ApplicationHandleEvent function, which we cover last.

Edit Customer

We have a bunch of resources for the Edit Customer form. Here are the #defines:

#define CustomerForm 1300 #define CustomerOKButton 1303 #define CustomerCancelButton 1304 #define CustomerDeleteButton 1305 #define CustomerPrivateCheckbox 1310 #define CustomerNameField ...

Get Palm OS Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.