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
Menu Manager Routines


Managing Entries in the Menu Color Information Table

The Menu Manager maintains color information about an application's menus in a menu color information table. The standard menu definition procedure defines the standard color for the menu bar, titles of menus, text and characteristics of a menu item, and background color of a displayed menu. You can change any of these colors by adding entries to your application's menu color information table. However, note that in most cases your application should use the default colors for its menus.

You can provide an 'mctb' resource with resource ID 0 as one of your application's resources if you want to use colors other than the default colors for your application's menu bar and menus. (Or you can provide an 'mctb' resource with the same resource ID as a 'MENU' resource to define the color entries for a single menu.) You can also add entries to or delete entries from your application's menu color information table using the SetMCEntries and DeleteMCEntries procedures. You can get information about an entry using the GetMCEntry function. To get or set your application's menu color information table, use the GetMCInfo function or SetMCInfo procedure. To dispose of your application's menu color information table, use the DisposeMCInfo procedure.

Note that the menu color information table uses a format that is different from the standard color table format. "The Menu Color Information Table Record" beginning on page 3-100 describes the format of the menu color information table in detail.


Subtopics
GetMCInfo
SetMCInfo
DisposeMCInfo
GetMCEntry
SetMCEntries
DeleteMCEntries

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996