Adobe FrameMaker 7.0 User Manual Download Page 27

25

ADOBE FRAMEMAKER 7.0

Changing Menus and Commands

 Online manual

Customizing commands

The commands that appear on the standard menus are defined in the three command configuration files listed 
in “Standard configuration files” on page 20. Each menu command corresponds either to a built-in function or a call 
to a program that uses the API. The built-in functions are defined by FrameMaker. The definition of a command 
includes the identifier of the built-in function or program.

This section tells you how to change the standard commands, remove them, and add additional commands to 
the menus. For information on how to write programs that use the API, see the 

FDK Programmer’s Guide,

 which 

is included in the Frame Developer’s Kit.

Important: 

If you want to edit the

 menus.cfg 

file using FrameMaker, you must first move the file out of its directory. 

Then open the file and save it in Text Only format, and return it to its directory. Alternatively, you can use a text editor 
to edit it in its own directory.

Creating a new command

You can create a new command on a menu. You can also make a number of specifications when you create a 
new command. The example below is the definition of the New command which appears on the File menu.

< Co m m a n d   Ne w

< L a b e l   Ne w. . . >

< Ke y S e q u e n ce   \ ! f n >

< D e fi n i t i o n   \ x 3 0 0 >

< Mo d e   A l l > >

You can nest statements in other statements. In the above example, there are four statements nested within the 
overall Command statement. Each one of these determines one characteristic of the new command. 

The first line creates a command called New. This is the command’s identifier, the name by which the command 
will be referenced in other statements. The command identifier must be one word. Notice that the closing 

ang

le 

bracket (>) for this statement is on the last line.

The second line gives this command a label of New... which is how it will be shown on 
the menu. If you want an ampersand character to appear in the label, type 

& &

—the configuration files include 

single ampersands which only have meaning for installations of FrameMaker on Microsoft Windows operating 
systems.

The third line sets the keyboard shortcut for this command. The 

\!

 stands for the Esc key, so the shortcut 

consists of three characters: Esc, f, and n. A single command can have multiple 

Ke y S e q u e n ce

 statements.

The fourth line defines the actual function that is called when the command is chosen on the menu. This 
function is specified by its function code number, called an f-code. The f-codes for all the built-in functions are 
listed in a header file, 

fcodes.h

, which is part of the Frame Developer’s Kit. This file is located in the 

include

 

directory under the FDK installation directory.

The last line means the command is both a FrameMath command and a regular Frame command.

!ViewerPopup

a View-only document window 

!ViewOnlyBookContextMenu

a View-only book window

This context menu id

Identifies the context menu for:

Summary of Contents for FrameMaker 7.0

Page 1: ...Customizing Windows FrameMaker 7 0 Adobe...

Page 2: ...ws and dialog bo xes 11 FDK clients 12 Dash patterns 13 Thermometer colors 14 Document comparison options 14 Spelling options 15 Basic font settings 16 Aliases for Windows fonts 18 Mappings for unav a...

Page 3: ...mmands on page 20 Locating customization files In this manual install_dir represents the directory in which FrameMaker is installed Customization files are located in install_dir fminit install_dir fm...

Page 4: ...that begins with a semicolon is a comment and is not read by the system User profile versions of maker ini FrameMaker always stores a copy of the product initialization file maker ini in install_dir T...

Page 5: ...ker One specifies the install path HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows CurrentVersion AppPaths FRAME EXE default actual path to frame exe The other entry specifies the initialization file fo...

Page 6: ...me or all of the settings The order of the settings listed here does not necessarily match the order in which they appear in the initialization file Exiting FrameMaker AskExit Off The AskExit setting...

Page 7: ...e a pair of settings for each of these items so that both inches and centimeters can be specified The values that FrameMaker uses depend on the measurement system specified in the Number tab of the Re...

Page 8: ...e The EPSLevelForPlacedPdf specifies the level of EPS to use for placed PDF images By default FrameMaker prints imported PDF Placed PDF files by converting them to Level 2 EPS files Use this setting t...

Page 9: ...gWarnKbdRedundant to On you will see warning messages when you load the customization file if it contains redundant shortcut definitions If you set ConfigWarnKbdOverride to On you will see warning mes...

Page 10: ...ault is Off FrameMaker does not consider Ctrl Alt G to be equivalent InputMethodAutoActivation Off On Typing text in Asian fonts is accomplished via a special input device FrameMaker can recognize whe...

Page 11: ...eMaker treats it as a palette such as the Tools palette or Equations palette Palettes in AlwaysOnTopPalet teDir always float in front of documents ColorLib specifies the folder that contains color lib...

Page 12: ...on your monitor If you need to reinstall the font reinstall the FrameMaker 7 0 product application files FMSmallFont contains the font used in the Tools palette Do not change this setting Menu and com...

Page 13: ...the instructions in the file FirstRunOpenDoc specifies a document that displays only when you run FrameMaker for the first time After this document has been displayed once this setting is reset to ha...

Page 14: ...is modified in the DialogLayout setting when you exit This becomes the default location the next time you start FrameMaker FDK clients The APIClients settings list FDK clients plug ins to start when...

Page 15: ...contains a label that identifies the dash pattern in the Dashed Line Options dialog box and a repeating series of dash and gap segment lengths Dashes and gaps are measured in points The following illu...

Page 16: ...d The MarkInsertedText settings control the standard choice for marking insertions You can choose the standard Inserted condition ConditionInserted a custom condition ConditionTag or Nothing Edit the...

Page 17: ...indSpaceBefore and FindSpaceAfter be sure to leave a space between the On Off toggle and the character or group of characters to the right of it Quotation marks for Smart Quotes The last group of line...

Page 18: ...in the Size pop up menu in the Paragraph Designer and Character Designer You can edit this line to change the values to any values between 4 and 400 points If the line contains more than 10 values onl...

Page 19: ...hen determining the size of pop up menus You should not change this setting Fonts not used in spell checking NonTextFamilies ZapfDingbats Symbol WingDings Monotype Sorts This setting defines the font...

Page 20: ...ions of FrameMaker For example Helvetica Narrow is normally a font family in Windows but with aliasing Helvetica appears as a font family and Narrow appears as a variation in the Character Designer an...

Page 21: ...n asterisk to specify no particular angle weight or variation For example Lumina Helvetica Helvetica Light Helvetica Regular Helvetica UltraCompressed Helvetica Narrow If you open a document with unav...

Page 22: ...a menu is a line that visually separates menu items into groups On most menus they are visible but have no other function However on menu bars they are invisible and serve a special function see Sepa...

Page 23: ...o save it in Text Only format The default location and filename for the menu customization file is fminit configui customui cfg You do not have to use this file however You can create a menu customiza...

Page 24: ...tomUIFile setting in the initialization file to the path and name of your menu customization file If you have defined a custom menu bar and you want it to replace FrameMaker s menu bar you also change...

Page 25: ...u bars or are associated with the Formatting bar You cannot remove these menus from the menu configuration file FrameMaker will not work properly without them Statement What statement does Menu Define...

Page 26: ...menus document window active RulerAlignMenu Alignment pop up menu in the formatting bar RulerControlMenu Formatting bar RulerParaMenu Paragraph Formats pop up menu in the formatting bar RulerSpaceMen...

Page 27: ...the above example there are four statements nested within the overall Command statement Each one of these determines one characteristic of the new command The first line creates a command called New...

Page 28: ...and label for each condition in which it can be chosen Each of the conditions has a ReservedLabel statement The definition of the Edit Select command looks like this Command SelectAll ReservedLabel Fl...

Page 29: ...to remove the Reshape command from both the quick and complete Graphics menus use the following statements Remove GraphicsReshape Menu GraphicsMenu Remove GraphicsReshape Menu QuickGraphicsMenu Addin...

Page 30: ...Return Tab BkSp Space Delete Insert F1 through F16 and Escape For instance to include the Tab key as part of a key sequence you use Tab You might also want the new shortcut to appear on the menu next...

Page 31: ...ainMenu Label MyOwnMenus Then add the menus that you want to appear on your menu bar You can use existing menus or define your own If you define your own you must define the menu first before adding i...

Page 32: ...tedCommand 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 Ungro...

Page 33: ...n you do this the menus that contain the functions you need to edit the object will replace some of the FrameMaker menus This is called menu merging For example the complete menu bar for FrameMaker Ma...

Page 34: ...nu MakerMainMenu Add MSWindowMenu Menu MakerMainMenu Add Separator5 Menu MakerMainMenu Add HelpMenu Menu MakerMainMenu Rearranging menu items You can rearrange menus on the menu bar and menu items on...

Page 35: ...abel is the new label for the menu For example to rename the Page Layout submenu on the Format menu to Page Design use the following statement Modify PageLayoutMenu Label Page Design Removing a menu o...

Page 36: ...es appear in the console window If you find errors you can fix them immediately and continue writing When you read the same menu customization file again you ll see error messages about redefining a c...

Reviews: