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
Application-Defined Routine


The Menu Definition Procedure

The Menu Manager uses the menu definition procedure of a menu to draw the menu items in the menu, to determine which item the user chose from the menu, and to calculate the menu's dimensions. If you provide your own menu definition procedure,
it should also perform these tasks.

Apple provides a standard menu definition procedure, stored as a resource in the System file. The standard menu definition procedure is the 'MDEF' resource with resource ID 0. When you define your menus, you specify the menu definition procedure the Menu Manager should use when managing them. You'll usually want to use the standard menu definition procedure for your application. However, if you need a feature not provided by the standard menu definition procedure (for example, if you want to include more graphics in your menus), you can choose to write your own menu definition procedure.


Subtopics
MyMenuDef

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996