Datasheet

Book VII
Chapter 1
A User Interface
for Adding Hotels
and Using the
Address Book
745
Add AddHotelController
6. To add blank text fields for each label, drag in five of them from the
Library window, as shown in Figure 1-4.
While it’s not shown in any of the figures, I have Appears While Editing
selected in the Clear Button drop-down menu and, I have Clear When
Editing Begins deselected. These are my preferences; you should feel
free to use them or experiment with your own settings.
Finally, you need to add the buttons that will enable the user to either
get the hotel info from his or her contacts or save the information he or
she just entered to their contacts.
7. Drag in two Round Rect Buttons from the Library window and add
titles, as shown in Figure 1-5. (Keep the text right justified.)
8. Choose FileSave to save what you’ve done.
You can also save your work by pressing Ô+S.
Be sure to save your work. Forgetting to save your work has caused many
developers (including yours truly) to waste prodigious amounts of time
trying to figure out why something “doesn’t work.”
Ready to admire your work? For that, you’ll need to build and run your
application.
9. Choose FileSimulate Interface.
Admire away. (See Figure 1-6.)
Figure 1-4:
The Text
fields.
41_542934-bk07ch01.indd 74541_542934-bk07ch01.indd 745 3/23/10 11:01 PM3/23/10 11:01 PM