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 / Highlighting the Menu Bar


FlashMenuBar

Use the FlashMenuBar procedure to highlight (invert) a menu title or the entire menu bar. You can call FlashMenuBar twice in a row to make the menu bar blink.

PROCEDURE FlashMenuBar (menuID: Integer); 
menuID
The menu ID of the menu whose title you want to invert. Use 0 in this parameter to invert the entire menu bar. If the specified menu ID does not exist in the current menu list, the FlashMenuBar procedure inverts the entire menu bar.
DESCRIPTION
The FlashMenuBar procedure inverts the title of the specified menu or inverts the menu bar. To prevent unexpected colors from appearing in the menu bar, you should
not call FlashMenuBar to invert a menu title while the entire menu bar is inverted.

Only one menu title can be inverted at a time. If no menus are currently highlighted, calling FlashMenuBar with a specific menu ID inverts the title of that menu. If you call FlashMenuBar again specifying another menu ID that is different from that of the previously inverted menu title, FlashMenuBar restores the previously highlighted menu to normal and then inverts the title of the specified menu.

SEE ALSO
You can also highlight a menu using the HiliteMenu procedure, described on page 3-121.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996