TableMenu Agent

Compatibility: 5.0.1? - 5.0.2b20? - 5.1.2+ - 6.0 - MacOS - Windows

Version 1.1.1 by Samuel Reynolds, 1998/01/17.
This table of scripts is hereby placed in the public domain. Do with it as you will. It is provided free of charge and with no warrantee whatsoever. It works for me; your mileage may vary.

Please read the ReadMe through so you understand what you're doing to your Frontier environment.

What It Does

The TableMenu agent watches the topmost window, and installs a menu defined in the ODB hierarchy above the topmost window, or (if the window is a table) in the hierarchy above the selected item in a table. When the topmost window changes (e.g., you click on a different window), it removes the menu it previously installed (if any), and looks for a new menu to install.

This means that you can put a custom menu in any table in the ODB and have it automatically installed for you when you open that table or any table or other entry nested within that table. In particular, it allows you to put one or more custom menus in each of your websites, if you so desire. Because it recognizes the name "#menu", you don't have to do anything special to make the website framework ignore the menu.

If you want to use a different menu name, or more than one menu name, change the recognizedMenuNames entry in the TableMenu table (it may be either a list or a table). If you use tools such as Mimi that have (semi-)permanently-installed menus, you should not set the TableMenu agent to recognize "menu"; if you do so, it may add duplicate menus or delete the menus for these tools.


This page is a Fat Page. It includes the above script(s), encoded by and for Frontier. To retrieve the script(s), save the page as source text and open it using the File->Open command.

Copyright © 1998, 1999 by Samuel Reynolds. All rights reserved. Last modified 1999/05/20.
Built with Frontier v.6.0 on Macintosh OS 8.1 on 1999/05/23.