Purpose
Returns information about a MapInfo Pro menu item.
Syntax
MenuItemInfoByID( menuitem_ID, attribute )
menuitem_ID is an integer menu ID (specified in the ID clause in Create Menu).
attribute is an integer code indicating which attribute to return.
Description
This function is identical to the MenuItemInfoByHandler() function, except that the first argument to this function is an integer ID.
Call this function to query the status of a menu item when you know the ID of the menu item you need to query. Call the MenuItemInfoByHandler() function to query the status of a menu item if you would rather identify the menu item by its handler.
The attribute argument is a code from MAPBASIC.DEF, such as MENUITEM_INFO_CHECKED (2). For a listing of codes you can use, see MenuItemInfoByHandler() function.
See Also:
MenuItemInfoByHandler() function