Important: The information in this document is obsolete and should not be used for new development.
HiliteMenu
You can use theHiliteMenuprocedure to highlight or unhighlight menu titles. For example, after performing a menu command chosen by the user, use theHiliteMenuprocedure to unhighlight the menu title.
PROCEDURE HiliteMenu (menuID: Integer);
- menuID
- The menu ID of the menu whose title should be highlighted. If the menu title of the specified menu is already highlighted,
HiliteMenudoes nothing. If the menu ID is 0 or the specified menu ID isn't in the current menu list,HiliteMenuunhighlights whichever menu title is currently highlighted (if any).DESCRIPTION
TheMenuSelectandMenuKeyfunctions highlight the title of the menu containing
the item chosen by the user. After performing the chosen task, your application
should unhighlight the menu title by callingHiliteMenuand passing 0 in themenuIDparameter.The
HiliteMenuprocedure highlights a menu title by first saving the bits behind the title rectangle and then drawing the highlighted title.HiliteMenuunhighlights a menu title by restoring the bits behind the menu title.The global variable
TheMenucontains the ID of the currently highlighted menu in the menu bar. If the user chooses an item from a submenu,TheMenucontains the menu ID of the submenu, not the menu to which the submenu is attached.SEE ALSO
To highlight the entire menu bar, use theFlashMenuBarprocedure, described on page 3-143.