TOC PREV NEXT INDEX DOC LIST MASTER INDEX




File > New > New Menu Item...

The File > New > New Menu Item command is used to create a new menu item on a particular editor's menu for a specified window kind. The created menu item appears on the menu, but is meaningless until an action is written for it to provide its semantics. This is done using the Define Script dialog. When you choose the File > New > New Menu Item command, the New Menu Item dialog box appears.

New Menu Item Dialog Box Fields:

Server Name

Menus are associated with a particular server. The full set of valid servers can be displayed using the Alternatives button. Currently, they are: Ada, text, Directory, Output, and Debugger. The Server name component can have the * wildcard character to specify more than one server kind.

Window Name

Name of the window in which the new menu item is to appear. For example, if you want for the new menu item to appear in the Imports window, this entry would be "imports".

Menu Name

Name of the top level menu and any submenus in which the new menu item is to appear. Names should be separated by a period. For example,

compile.show
control.maintenance

Kind

Type of entry to add. The following are allowable:

pushbutton
cascade
separator
togglebutton

Name

Name of the new menu item. Names of menu items conform to the X convention of beginning with a lower case letter with succeeding words capitalized. For example, myTool.

Label

Text displayed on the screen when the menu appears.

Mnemonic

Letter underlined within that string which can then be used for keyboard activation.

Visit buttons file

Displays the contents of the pushbutton file. This file contains the definition for all the defined pushbuttons.

Define Menu script...

Displays the Run Script dialog which is used to enter the semantics/actions associated with the new Menu item. The Run Script dialog is displayed using the Tools > Run Script command.


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2001, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS