Important: The information in this document is obsolete and should not be used for new development.
InvalMenuBar
Use theInvalMenuBar
procedure to invalidate the menu bar.
PROCEDURE InvalMenuBar;DESCRIPTION
TheInvalMenuBar
procedure marks the menu bar as changed and in need
of updating. When the Event Manager scans update regions for regions that require updating, the Event Manager also checks to determine whether the menu bar
requires updating (because of a call toInvalMenuBar
). If the menu bar needs updating, the Event Manager calls theDrawMenuBar
procedure to draw the menu bar.You can use
InvalMenuBar
instead ofDrawMenuBar
to minimize blinking in the menu bar. For example, if you have several application-defined routines that can change the enabled state of a menu and each callsDrawMenuBar
, you can replace the calls toDrawMenuBar
with calls toInvalMenuBar
. In this way the menu bar is redrawn only once instead of multiple times in quick succession. If you need to make immediate changes to the menu bar, useDrawMenuBar
. If you want to redraw the menu bar at most once each time through your event loop, useInvalMenuBar
. TheInvalMenuBar
procedure is available only in System 7.