News
Map
About

 


The Custom Menu

Your Custom Menu is a menu whose name is your initials. It lives in the ODB at user.menus.customMenu. The Custom Menu is installed on the menubar when you start up Frontier. For example, a user whose initials are U.S.E.R. would see a menu similar to that shown below. This is the default Custom Menu provided with a clean install of Frontier (just a placeholder, really).

Select the Edit Menu command from your Custom Menu.

The window user.menus.customMenu will open. It contains your Custom Menu, displayed as an outline. The default Custom Menu should look like this:

The first line gets your initials from user.prefs.initials for the title of the menu. The dividing line is created by a line containing a single hyphen ("-"). In fact, any line in the menu outline that begins with a single hyphen will create a dividing line at the corresponding location in the menu (the rest of the item text is ignored).

Double-click on the triangular bullet beside the "Edit Menu" entry. A new window with the script of the menu item opens:

In this case, the script simply opens the Custom Menu outline.

Editing the Custom Menu

To add a command to your Custom Menu, simply select an existing item and hit the Enter or Return key. In the newly-created line, type in the name of your command.

Since the menu is an outline, you can use all the reorganization commands from the Outliner menu. In particular, you can also create submenus by indenting one or more lines under a header line.

As an example, click on the Hello World entry, and hit the (Return) [keyboard Enter] key. Type "Open" (without the quotes) as the text of that line. Now hit the (Return) [keyboard Enter] key again, and enter "Scratchpad". Hit the Tab key to indent the Scratchpad entry under the Open entry.

Open the menu item script of the new Scratchpad item (by double-clicking on the triangle icon), and enter the script

edit (@scratchpad)
Then close the menu item script window.

Now you can select Show->Scratchpad from your Custom Menu. You're on your way!

Note that if you now double-click on the triangle icon beside the "Open" line of the menu outline, it simply expands or collapses the submenu. "Open" is the submenu title, and cannot have a script. Double-clicking on the triangle icon beside the "Scratchpad" line of the menu outline opens the menu item script, as before.

So let's move on to Organizing Your Custom Menu



Page 1: The Custom Menu
Page 2: Organizing Your Custom Menu
Page 3: Organizing Your Custom Scripts
Page 4: Custom Menu Management Approach
Page 5: How to Clone Your Custom Menu
Page 6: A Few More Tips
Page 7: About the Author


News - Map - About ScriptMeridian

This tutorial was written by Samuel Reynolds in Parker, CO, USA.
Page last revised 1998/09/27; 10:47:17 AM.
Copyright © 1998 ScriptMeridian. All rights reserved
All trademarks are the property of their respective owners.
11:32:52 AM 27 September 1998