GetMenu

* GetMenu(number menuItem, number subfunction, param)

Get a menu item's properties. Following the menuItem, you can specify what property you would like to obtain with a parameter. Each parameter has a type ID, specified in SCI.SH.

The parameters are as follows:

smMENU_SAID

1 parameter, a said string.

Retreives the menu item's said property.

Example
(var theSaid)
=
theSaid GetMenu($202 smMENU_SAID)
smMENU_TEXT

1 parameter, a string.

Returns the menu item's text.

Example
Print(GetMenu($202 smMENU_TEXT))
smMENU_SHORTCUTKEY

1 parameter, a number.

Returns the menu item's shortcut key. See KEYS.SH for the keycodes.

Example
(var theKey)
=
theKey GetMenu($202 smMENU_SHORTCUTKEY)
smMENU_ENABLE

1 parameter, a bool.

Returns whether the item is enabled or not.

Example
(if(SetMenu($202 smMENU_ENABLE))
    Print("The item is enabled!")
)

see also: SetMenu, AddMenu