_SetItemCmdKey( ) API Library Routine

See Also   Example

Sets both the keyboard shortcut for the specified menu item, and the displayed text for the keyboard shortcut.

Syntax

void _SetItemCmdKey(MENUID menuid, ITEMID itemid, int key, char FAR *text)
MENUID menuid;            /* Menu identifier. */
ITEMID itemid;            /* Menu item identifier. */
int key;                     /* Shortcut key. */
char FAR *text;            /* Displayed text. */

Remarks

If you don't want to display a keyboard shortcut, pass text as a pointer to a null string. If you want the system to generate the default displayed text, pass (char FAR *)0.

For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.