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: Macintosh Toolbox Essentials /
Chapter 6 - Dialog Manager / Dialog Manager Reference
Resources


The Dialog Resource

You can use a dialog resource to define a dialog box. A dialog resource is a resource of type 'DLOG'. All dialog resources must be marked purgeable, and they must have resource ID numbers greater than 128.

To specify the items in a dialog box, you must also provide an item list resource, described beginning on page 6-144. Use the GetNewDialog function (described on page 6-106) to create the dialog box defined in the dialog resource.

The format of a Rez input file for a dialog resource differs from its compiled output format. This section describes the structure of a Rez-compiled dialog resource. If you
are concerned only with creating a dialog resource, see "Creating Dialog Boxes" beginning on page 6-23.

Figure 6-42 shows the format of a compiled dialog resource.

Figure 6-42 Structure of a compiled dialog ('DLOG') resource

The compiled version of a dialog resource contains the following elements:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996