PopUpMenu

PopUpGetShortct

Find the first item with a given shortcut key code

Syntax

Signature
int         PopUpGetShortct( const PopUpMenu *popUp, int key );

Arguments

popUp the pop-up menu.

key the shortcut key code to find. 0 returns 0 immediately.

Return value

The one-based position of the first matching item, or 0 if there is no match, key is 0 or the object is NULL.

Description

The search includes disabled items and items that open submenus. Use `PopUpSelect()` to attempt selection.

See also