Important: The information in this document is obsolete and should not be used for new development.
GetItemMark
Use theGetItemMarkprocedure to get the mark of a specific menu item or the menu ID of the submenu associated with the menu item.
PROCEDURE GetItemMark (theMenu: MenuHandle; item: Integer; VAR markChar: Char);
theMenu- A handle to the menu record of the menu containing the menu item whose mark or submenu you wish to get.
item- The item number of the menu item. The
GetItemMarkprocedure returns the mark of this item or, if this item has a submenu associated with it, returns the menu ID of the submenu in themarkCharparameter.markChar- The
GetItemMarkprocedure returns the mark or the submenu of this item in themarkCharparameter. A menu item can have a mark or a submenu attached to it, but not both. If this menu item has a marking character, theGetItemMarkprocedure returns the mark. If this menu item has a submenu associated with it, theGetItemMarkprocedure returns the menu ID of the submenu. If the item doesn't have a mark or
a submenu,GetItemMarkreturns 0 in this parameter.DESCRIPTION
If the item has a mark or submenu, theGetItemMarkprocedure returns the mark or the menu ID of the submenu of the specified menu item in themarkCharparameter (or 0 if the item doesn't have a mark or a submenu).