After you add a menu, you can move it. For details, see "Rearranging menu items" on page 32.
Adding a command to a menu
You add a command to a menu with an Add statement, the same way you add a menu to a menu.
CommandID
< Ad d
<Menu
CommandID is the identifier of the command you're adding. MenuID is the identifier of the menu to which you
want to add the command.
For example, to add the Find/Change command to the Special menu, use the following statement:
<Add Find/Change <Menu SpecialMenu>>
When you add a command, it appears at the bottom of the menu. After you add a command, you can move it.
For details, see "Rearranging menu items" on page 32. You can't add a command directly to the menu bar. The
command must be on a menu.
You can also specify a Shift command—a command that replaces another command when you display the
menu while holding down the Shift key. For example, when you hold down Shift and pull down the File menu,
the Save command appears as Save All Open Files.
To add a Shift command to a menu, use the following statement:
UnshiftedCommand ShiftedCommand
<ShiftCommand
UnshiftedCommand is the identifier of the command as it normally appears. ShiftedCommand is the identifier
of the command you want to appear when you hold down the Shift key. For example, if you want the Ungroup
command to appear in place of the Group command on the Graphics menu when you press Shift, use the
following statement:
<ShiftCommand Gr aphicsGroup Gr aphicsUng roup>
Adding hypertext commands to a menu
You can use the Hypertext keyword to add hypertext commands to the menu. For example, the following state-
ments define an alert message that can be displayed by pressing the assigned shortcut keystroke (Esc x x x) or
selecting the command from the View menu:
<Command Test
< L a b e l He l l o >
<Ke ySequence \!xxx>
<Hy p er text aler t He llo there>>
<Add Test <Menu Vi ewMenu>>
For information on hypertext commands, see "Chapter 18: Hypertext and View-Only Documents" in the
FrameMaker User Guide.
Adding a separator between items on a menu
To add a separator line to a menu, use the following statement:
n
MenuID
<Add Separ ator
<Menu
MenuID is the identifier of the menu to which you want to add a separator, and n is the separator number from
1 to 5. You cannot add duplicate separators to the same menu; each one must have a unique name. You can
define more separators by defining a command which is defined with the F12 function code. For example:
<Command Separ ator6 <Definition \xF12>>
MenuID
> >
>>
>
ADOBE FRAMEMAKER 7.0
Changing Menus and Commands
Online manual
30
Need help?
Do you have a question about the FrameMaker 7.0 and is the answer not in the manual?
Questions and answers