Development Guide

Table Of Contents
Chapter 3
|
Customizing database solutions 21
About custom menus
With FileMaker Pro Advanced, you can create custom menus, menu
items, and menu sets for your database solutions. You can:
1 create a menu or edit an existing menu
1 duplicate or delete a menu
1 add, duplicate, or delete menu items
1 specify menu item properties, such as display title, shortcut, and action.
You can customize menus by:
1 editing a copy of a standard FileMaker menu. Use this method to
make minor changes to existing menus, for example, to modify the
properties of a few menu items.
1 starting with an empty menu. Use this method to make significant
changes to menus, for example, to add menus and change menu item
properties.
Custom menu example
The following example shows how to customize the New Record
menu item that appears in the Records menu. You can rename the
New Record menu item to New Invoice, then attach a script that runs
when the user chooses the New Invoice menu item. Finally, you can
change the default menu set so your new custom menu set displays
when a user opens the database.
This example assumes the database contains a script called My New
Invoice. My New Invoice automates several tasks, like switching to
the Invoices layout and creating an empty record.
1. Open the database and choose File menu > Manage > Custom
Menus. Double-click the Records Copy menu to edit a copy of the
standard Records menu.
2. Select the New Record menu item to modify the properties of the
menu item. Change the title of the New Record menu item to New Invoice.
3. Change the action of the menu item to run the My New Invoice script.
4. Set the default menu set for the file to Custom Menu Set #1.
5. Click OK.