Important: The information in this document is obsolete and should not be used for new development.
GetItemMark
Use theGetItemMark
procedure 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
GetItemMark
procedure returns the mark of this item or, if this item has a submenu associated with it, returns the menu ID of the submenu in themarkChar
parameter.markChar
- The
GetItemMark
procedure returns the mark or the submenu of this item in themarkChar
parameter. A menu item can have a mark or a submenu attached to it, but not both. If this menu item has a marking character, theGetItemMark
procedure returns the mark. If this menu item has a submenu associated with it, theGetItemMark
procedure returns the menu ID of the submenu. If the item doesn't have a mark or
a submenu,GetItemMark
returns 0 in this parameter.DESCRIPTION
If the item has a mark or submenu, theGetItemMark
procedure returns the mark or the menu ID of the submenu of the specified menu item in themarkChar
parameter (or 0 if the item doesn't have a mark or a submenu).