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: More Macintosh Toolbox /
Chapter 3 - Help Manager / Help Manager Reference
Resources


The Window Help Resource

To associate the help balloons defined in an 'hrct' resource with a particular window, you must create a window help resource. Unless you include an item of type HelpItem in an item list resource, you also must create a window help resource to associate an 'hdlg' resource with a particular alert box or dialog box. The window help resource is a resource of type 'hwin'. All 'hwin' resources must have resource IDs greater
than 128.

The 'hwin' resource merely associates 'hrct' and 'hdlg' resources with windows. To specify hot rectangles, help balloon characteristics, and help messages for areas in a static window, you must use 'hrct' or 'hdlg' resources, which are described in "Specifying Help for Rectangles in Windows" on page 3-62 and "Providing Help Balloons for Items in Dialog Boxes and Alert Boxes" on page 3-47, respectively.

The format of a Rez input file for an 'hwin' resource differs from its compiled output form. This section describes the structure of a Rez-compiled 'hwin' resource. If you are concerned only with creating 'hwin' resources, see "Associating Help Resources With Static Windows" on page 3-63 for a detailed description of how to use Rez input files to create 'hwin' resources.

An 'hwin' resource consists of a header component and a variable number of window components. Figure 3-40 shows the general structure of a compiled 'hwin' resource.

Figure 3-40 Structure of a compiled window help ('hwin') resource

If you examine a compiled version of an 'hwin' resource, you find that the header component consists of the following elements:

If you examine a compiled version of an 'hwin' resource, you find that a window component consists of the following elements:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996