MenuItem

MenuItemSetShortcut

Set the shortcut key code of the item

Syntax

Signature
xBool         MenuItemSetShortcut( MenuItem *item, int shortcut );

Arguments

item the menu item to change.

shortcut the key code to store, or 0 to clear the shortcut.

Return value

T on success, or F if the object is NULL.

Description

The setter stores the supplied value directly, including `NIL`. The constructors use `0` when passed `NIL`.

See also