Chapter 8 - Menus
This chapter describes how your application can use the Menu Manager to create and manage menus. Menus provide a simple and standard method for the user to view or choose from a list of commands and settings that your application provides. Every Macintosh application that has a user interface should support pull-down menus (that is, menus that the user "pulls down" by pressing the mouse button when the cursor is over the menu title in the menu bar).This chapter shows how to
Most Macintosh applications provide more menu handling than is illustrated in this chapter. For example, you might want to use pop-up menus in a window or dialog box. For a complete description of the capabilities of the Menu Manager and for code samples illustrating more advanced menu-handling techniques, see the chapter "Menu Manager" in Inside Macintosh: Macintosh Toolbox Essentials.
- create menu and menu bar resources
- open those resources to display the menu bar
- handle user clicks in the menu bar
- handle user choices of menu items
- handle keyboard equivalents of menu commands
- enable and disable menu items
Chapter Contents
- About Menus
- Creating Menus
- Creating a Menu Resource
- Creating a Menu Bar Resource
- Setting Up the Menu Bar and Menus
- Handling Menu Choices
- Handling Keyboard Equivalents
- Adjusting Menus
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help