Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getmenuid()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetMenuId()
Return the id of a menu item
------------------------------------------------------------------------------

Syntax
GetMenuId( <aMenu>, <cId> | <nId> )   -->   nId or cId

Arguments
<aMenu> is the existing menu, originally obtained from
CreateMenu() or CreatePopupMenu().

<cId> | <nId> is a character string or a number identifying
the item.

Returns
If <cId> is specified, the numeric id for the item is
returned.  If <nId> is specified, the string id of the item is
returned.

Description
This function can be used to convert between string and
numeric identifiers of a menu item.

Example
aMenu = CreateMenu()
AppendMenu( aMenu, "help",                 ;
            MF_ENABLED + MF_STRING,        ;
            "&Help", { | cId |  Help() } )
nId = GetMenuId( aMenu, "help" )

See Also: AppendMenu() CreateMenu() CreatePopupMenu()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson