Previous Topic: Understanding the Menu System

Next Topic: Selecting Menus for Session Windows


Selecting Menus for the Function Windows

The menu displayed for each function window appearing on the CA Automation Point desktop is configurable from Configuration Manager through Session Definition Sets dialogs. Before a user-customized menu can appear as a selectable menu, it must be previously defined by MENU and SUBMENU statements in the user.mnu file as directed in sections titled, Adding New Menu Options to Existing Submenus, Defining a New Menu, and Adding New Submenus to Existing Menus.

If you do not want to customize the menu, CA Automation Point automatically selects from its default menu system a predefined menu for the function window based on its type. For example, if Terminal is set to 6530, then CA Automation Point selects the menu named SESSION_6530 for the default menu.

If you want to select a user-customized menu for a function window, follow these steps to configure the menu for a function window.

  1. From Configuration Manager, click on Session Definition Sets to open the Session Definition Sets dialog. Expand the Session Definition Sets tree and double click on the function window you wish to configure.
  2. From the CA Automation Point Function Window Definition dialog, click on the Menu edit box and select a menu from a list of defined menus. Click OK to save and close the dialog.
  3. Click on Close to exit the Session Definition Sets dialog.
  4. CA Automation Point must be recycled before a new menu displays on a desktop window.

Example:

When you create a new function window of type PLOT, CA Automation Point does not provide a predefined menu. Add the following MENU and SUBMENU statements to user.mnu to include 'plot' in the list of selectable menus that can be configured for a function window by the Session Definition Sets dialog.

MENU = plot,
   SUBMENU = window,
   SUBMENU = plot_control

SUBMENU = plot_control,
   NAME = (control),
   ITEM = ('start plot', XCCMD('REXX "plot start"')),
   ITEM = ('stop plot', XCCMD('REXX "plot stop"'))