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 3 - Menu Manager / Menu Manager Reference


Resources

This section describes the menu ('MENU') resource, menu bar ('MBAR') resource, and menu color information table ('mctb') resource. Usually you should define your menus using 'MENU' resources, define the menus in your menu bar in an 'MBAR' resource, and use the GetNewMBar function to read in the descriptions of your menus and menu bar.

If you want to use colors other than the default colors in a menu, you can provide an 'mctb' resource with the same resource ID as its corresponding 'MENU' resource, or you can provide an 'mctb' resource with resource ID 0 to define colors for all your menus and your menu bar.

If you choose to provide your own menu definition procedure, you should store your routine in an 'MDEF' resource.

To create a 'MENU', an 'MBAR', or an 'mctb' resource, either you can specify the resource description in an input file and compile the resource using a resoure compiler, such as Rez, or you can directly create your resources in a resource file using a tool such as ResEdit. This section describes the structures of these resources after they are compiled by the Rez resource compiler. If you are interested in creating the Rez input files for these resources, see "Using the Menu Manager," beginning on page 3-41, for detailed information.


Subtopics
The Menu Resource
The Menu Bar Resource
The Menu Color Information Table Resource
The Menu Definition Procedure Resource

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996