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


The Menu Color Information Table Resource

To use colors other than the default colors in a menu, provide a menu color information table ('mctb') resource with the same resource ID as its corresponding 'MENU' resource. You can also choose to provide an 'mctb' resource with resource ID 0 to define colors for all your menus and your menu bar. Note that you should usually use the default colors provided by the Menu Manager.

The Menu Manager stores color information about your application's menus and menu bar in a menu color information table. If you provide an 'mctb' resource with resource ID 0, the Menu Manager reads the resource in when your application calls InitMenus and stores the information in your application's menu color information table. If you provide an 'mctb' resource with the same resource ID as a 'MENU' resource, when you use GetMenu to read in the resource description of the menu (or GetNewMBar to read
in all menus in the menu bar), the Menu Manager also reads in any associated 'mctb' resource (if it exists). "The Menu Color Information Table Record" beginning on page 3-100 describes the format of the menu color information table.

Figure 3-40 shows the format of a compiled 'mctb' resource.

Figure 3-40 Structure of a compiled menu color information table ('mctb') resource

A compiled version of an 'mctb' resource contains the following elements:

A color entry defines colors for various parts of the menu and menu bar. Figure 3-41 on the next page shows the format of a compiled menu color entry in an 'mctb' resource.

Each menu color entry in an 'mctb' resource contains the following:

Figure 3-41 Structure of a menu color entry in an 'mctb' resource


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996