Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Programmer's Guide to MacApp / Part 2 - Working With MacApp


Chapter 19 -
Working With Dialog Boxes
and Controls

This chapter includes recipes and sample code that demonstrate how to

Dialog boxes and controls are described in detail beginning on page 239 in Chapter 8, "Displaying, Manipulating, and Printing Data."

For related information, see "Recipe--Changing the Current Target Object and Performing Validation," beginning on page 339, and also Chapter 17, "Working With Views."


Chapter Contents
Overview
Recipes--Dialog Boxes and Controls
Working With Dialog Boxes and Controls--A General Outline
Recipe--Responding to User Actions in a Control View
Define a Subclass for the Control View
Implement a DoEvent Method
Recipe--An Alternative Approach to User Actions in a Control
Define a Unique Constant for Each Event You Will Handle
Define a View Resource for Your Dialog View
Override the DoEvent Method in Your Subclass of TDialogView
Recipe--Displaying a Modal Dialog Box
Define a 'View' Resource for the Dialog-Box Window Hierarchy
Create, Display, and Close the Dialog Box
Call the Window's PoseModally Method to Display the Dialog Box
Call the Window's Close Method

Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996