AddCustomMenuItem (label, code)
The name of the item, as a text string, that will actually appear on the menu.
Any piece of code that should be run when the menu item is selected.
A list containing two members: the ID number for this action, followed by a Gamma expression that is the action to be taken when a menu item is selected.
This method is a convenience method for adding a menu item. It is a wrapper on AddMenuItem. It creates an item for a menu created by AddCustomSubMenu, allowing any arbitrary code to be attached. This method can be used for modifying the application as it runs. Items to be created by this command must be coded immediately after AddCustomSubMenu, and will appear in sequence on that submenu.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.