Defining Menu Keys

To define a menu key in a character-based environment, assign the edit-action Menu to a key with the KEYSTROKE variable in your COBOL configuration file. For example, to make the <F1> key a menu key, place this line into your configuration file:

KEYSTROKE  Edit=Menu  k1

Keys and their key codes (such as k1) are listed in Table of Keys.

You can define a menu key within your program with SET ENVIRONMENT. For example,

SET  ENVIRONMENT  "KEYSTROKE"
TO  "Edit=Menu  k1"
Note: <F10> is the menu activation key for Windows environments. This cannot be modified.

You can define a menu key by several methods. Once a menu is active, the user can: