Chapter 7 - Dialog BoxesThis chapter describes how your application can use the Dialog Manager to create and manage dialog boxes. You can use dialog boxes to alert the user to unusual situations or to solicit information from the user. The Venn Diagrammer application uses one modeless dialog box and two modal dialog boxes.
This chapter shows how to
Most Macintosh applications support a number of dialog boxes and provide more complete event handling in those dialog boxes than is illustrated in this chapter. For example, the dialog boxes supported by the Venn Diagrammer application do not contain text fields. For a complete description of the capabilities of the Dialog Manager and for code samples illustrating more advanced dialog handling, see the chapter "Dialog Manager" in Inside Macintosh: Macintosh Toolbox Essentials.
- create resources describing dialog boxes and the items in dialog boxes
- open those resources to display a dialog box
- define application-specific dialog items
- handle events associated with both modeless and modal dialog boxes
- About Dialog Boxes
- Using Modeless Dialog Boxes
- Creating a Modeless Dialog Box
- Setting Up Application-Defined Items
- Handling User Actions in a Modeless Dialog Box
- Using Modal Dialog Boxes
- Displaying a Modal Dialog Box
- Defining a Modal Dialog Filter Function
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help