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 Item List Resource

You use an item list resource to specify items--such as buttons and text--in alert boxes and dialog boxes. An item list resource is a resource with the resource type 'DITL'. All item list resources must be marked purgeable, and they must have resource ID numbers greater than 128.

For an alert box, you specify the resource ID of the item list resource in an alert
resource (described beginning on page 6-142). For a dialog box that you create with
the GetNewDialog function, you specify the resource ID of the item list resource in a dialog resource (described beginning on page 6-141). For a dialog box that you create with either the NewColorDialog function (described on page 6-108) or the NewDialog function (described on page 6-111),
you use the Resource Manager function GetResource to read the item list resource into memory and to provide a handle to
the item list resource in memory.

The format of a Rez input file for an item list resource differs from its compiled output format. This section describes the structure of a Rez-compiled item list resource. If you are concerned only with creating an item list resource, see "Providing Items for Alert and Dialog Boxes" beginning on page 6-26.

Figure 6-44 shows the format of a compiled item list resource.

Figure 6-44 Structure of a compiled item list ('DITL') resource

The compiled version of an item list resource contains the following elements:

The format of each item depends on its type. Figure 6-45 shows the format of an item defined to be a button, a checkbox, a radio button, a static text item, or an editable
text item.

The compiled version of a button, checkbox, radio button, static text item, or editable text item consists of the following elements:

Figure 6-45 Structure of compiled button, checkbox, radio button, static text, and editable
text items

Figure 6-46 shows the format for an element defined to be a control, an icon, or a
picture item.

Figure 6-46 Structure of compiled control, icon, and picture items

The compiled version of a control, an icon, or a picture item consists of the following elements:

Figure 6-47 shows the format for an application-defined item.

Figure 6-47 Structure of a compiled application-defined item

The compiled version of an application-defined item consists of the following elements:

Figure 6-48 shows the format for a help item. (Help items are described in detail in the chapter "Help Manager" of Inside Macintosh: More Macintosh Toolbox.)

Figure 6-48 Structure of compiled help items

The compiled version of a help item consists of the following elements:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996