Parent Topic: Preferences
Adding Menu Items
The Menu preference can be used to add menu items to the ImageWorks
main menubar menus. In fact new menus can also be added.
The data arguments to the Menu preference have the following fields.
- field 1: The name of the procedure to run if the entry is selected, or
an empty string in double quotes if this item is to be a new
pulldown menu.
- field 2: The visible text to be placed on the menu item.
- field 3: The name of the pulldown menu under which to place the new
menu item, or the name of the new pulldown menu if field 2 is
an empty string. The existing pulldown menus in ImageWorks are
named FileMI, EditMI, ViewMI, ToolsMI and HelpMI.
- field 4: The name of the new menu item (should be unique).
The names of all the menu items in ImageWorks can be established by
running the DUMPMENU procedure in the ImageWorks modelling window.
Example:
This item in the preference file would add a new menu item to the Tools
menu (which is named ToolsMI). The new entry would be named BounceMI, and
have visible text "Bounce...". When selected the EASI+ procedure BOUNCE.EAS
would be run.
Menu: BOUNCE "Bounce..." ToolsMI BounceMI
The following example would create a new menu called Misc (and named
MiscMI), and add one item to that menu which would invoke the EASI+
procedure AUTOLOAD.EAS.
Menu: "" "Misc" MiscMI
Menu: AUTOLOAD "Auto Load" MiscMI AutoLoadMI
See Also: Disabling Menu Items
Parent Topic: Preferences
About PCI Help Gateway