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 / Getting and Setting the Menu Bar


SetMenuBar

Use the SetMenuBar procedure to set the current menu list to a specified menu list.

PROCEDURE SetMenuBar (menuList: Handle); 
menuList
A handle to a menu list that specifies the menus for a menu bar. You should specify a handle returned by GetMenuBar or GetNewMBar.
DESCRIPTION
The SetMenuBar procedure copies the given menu list to the current menu list. As with GetMenuBar, SetMenuBar doesn't copy the menu records, just the menu list (which contains handles to the menu records).

You can use SetMenuBar to restore a menu list that you previously saved using GetMenuBar or to set the current menu list to a menu list created by GetNewMBar.

The SetMenuBar procedure sets only the current menu list; to update the menu bar according to the new menu list, use the DrawMenuBar procedure.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996