DEFINE MENU ENTRY
Adds an EVE command to to a pull-down or pop-up menu for the DECwindows
interface.
Steps:
1. Use the DEFINE MENU ENTRY command.
2. Type the name of the menu to which you want to add a command.
DECwindows EVE menus have the following names:
File Pulldown Search Pulldown Help Pulldown
Edit Pulldown View Pulldown Select Popup
Format Pulldown Options Pulldown Noselect Popup
Put the name in quotes or let EVE prompt you for it. You need only use
the first term of the menu name, but you cannot abbreviate this term.
3. Type the name of the EVE command you want the menu item to execute.
Put the name in quotes or let EVE prompt you for it.
4. Type the name that you want to appear on the menu. Put the name in
quotes or let EVE prompt you for it. If you simply press RETURN at the
prompt, without typing anything, the label is the same as the command
name.
5. Type Yes or No to specify whether you want a separator line to appear
above the name, as a visual aid or for aesthetics. Put the response in
quotes or let EVE prompt you for it.
Example:
The following command adds SHOW BUFFERS to the File menu, labeling the
item "Buffer List," and adds a line separator above the item:
Command: DEFINE MENU "File" "SHOW BUFFERS" "Buffer List" "Yes"
Usage notes:
o Because of the number of parameters, it may be easier to let DEFINE
MENU ENTRY prompt you, rather than typing each parameter on the command
line. Alternatively, choose Extend Menu from the Options menu.
o You cannot use DEFINE MENU ENTRY on character-cell terminals.
o To save menu definitions for future editing sessions, use SAVE
ATTRIBUTES to create a section file or to create or update a command
file---see help on Attributes.
Related topics:
DECwindows Menus UNDEFINE MENU ENTRY