Creating and editing custom menu items (FileMaker Pro Advanced)After you create a menu, you can create menu items. You can also create or edit menu items that are copies of the Standard FileMaker menus. Menu items can be commands, submenus or separators. You can create a menu item that is based on a standard FileMaker command or you can create a menu item that initially does not have an assigned command.When you base a menu item on a FileMaker command, that menu item inherits all the properties of that command. You can override properties (title, shortcut, or action) to customize the menu item.
1.
2.
Click Create to add a new (<unknown>) menu item to the list. For Menu Item Type, choose Command, then select Based on existing command. In the Specify FileMaker Command dialog box, choose a command, then click Select or OK.Tip You can Shift-click Create to create an <unknown> command menu item. Click Create to add an <unknown> menu item to the list. For Menu Item Type, choose Submenu, then click Specify. In the Select Menu dialog box, choose a menu, then click Select.Note You can add up to 100 menus to the menu bar. If you add a menu that includes itself as a submenu, you may quickly reach the limit. Select a menu item from the list, then click Duplicate.
5. Select each menu item from the Menu Items list and specify its properties, then click OK to close the Edit Custom Menu dialog box.
For Menu Item Type, choose a different type. (For example, you can change a separator to a command.) Select Item Name and enter a new name.Windows: To specify an access key, type an ampersand (&) before the character you want to use as the access key. For example, type &Open to display the Open menu item with the letter “O” as the access key.To base the menu title on the result of a calculation, click Specify, then build a formula in the Specify Calculation dialog box. Select Keyboard Shortcut. In the Specify Shortcut dialog box, type a key combination, then click OK. Keyboard shortcuts appear next to menu items in the Menu Items list. Select Action. In the Specify Script Step dialog box, select a step and specify options as necessary, then click OK. For more information about scripts and script steps, see Creating scripts to automate tasks.Tip To affect the behavior of a currently running script (for example, to halt, exit, resume, or pause the script) use the Perform Script script step. For Install when, specify a calculation that results in a Boolean value.For example, for the menu item to appear when the file is opened in Windows, enter:
If( Abs(Get( SystemPlatform )) = 2; 1; 0 )For example, for the menu item to appear when the file is opened in OS X, enter:
If( Abs(Get( SystemPlatform )) = 1; 1; 0 )To ensure a menu item is always installed, for Install when, enter 1. For example, for the menu item to appear when the file is opened in Windows or OS X, enter 1.
• To override a command’s behavior (item name, keyboard shortcut, or action), you must select the Based on existing command checkbox and choose a different command. If the checkbox is not selected, the original command behavior is retained.
• If you enter the same keyboard shortcut or access key (Windows) for two different menu items, FileMaker Pro locates and issues the first instance of the command as follows:
• If you want an ampersand (&) to appear as part of a menu or menu item name, you must type the ampersand twice. For example, if you want a menu name to appear as Records & Reports, enter the title as Records && Reports.
• You can modify privilege sets in the Edit Privilege Set dialog box to control which menu items are enabled. See Creating and managing privilege sets.
• If you set Available menu commands to Editing only or Minimum, menu items based on FileMaker commands are enabled or disabled according to the setting. All other menu items, including items with customized actions, are disabled. For example, if you choose Editing only, all basic FileMaker editing commands are enabled but all other items (including items with customized actions) are disabled.
•