Managing Sessions Using CA Automation Point Windows › Customizing Menus › Defining a New Menu
Defining a New Menu
Follow these steps to create a new menu.
- Add a SUBMENU statement for each new submenu you wish to include in the menu bar. Specify the SUBMENU statement with your customized ITEM settings using a new SubmenuName. Edit user.mnu file to include the new SUBMENU statements and save.
- Identify SubmenuName for each existing submenu you wish to include in the menu bar. It is highly recommended that you include the existing submenu named, window, to your new menu. To determine the name of a predefined submenu given its submenu title, search axc2p.mnu and user.mnu files for all SUBMENU statements with the desired SubmenuTitle specified. The first operand in the SUBMENU statement is the submenu name.
- Add a new MENU statement with a new menu name and specify all the submenu names you want to include in the menu bar. Edit user.mnu file to include the new MENU statements and save.
- Assign a new menu to the function or session window. Use Configuration Manager's, Session Definition Sets dialog to open the selected function window or session definition dialog. Select the desired menu from the menu edit box and exit the Session Definition Sets dialog to save.
- CA Automation Point must be recycled before the new menu displays on the desktop window.
Example:
When you create a new function window of type PLOT, you may need to create a new menu for it. The following MENU and SUBMENU statements added to the user.mnu file define a new menu with two submenus named, plot_control and window. Submenu plot_control is user defined and submenu window is defined in the axc2p.mnu file. A new plot type function window is configured to use a menu named 'plot'. The existing submenu named, window, provides common CA Automation Point desktop navigational operations.
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"') )
Copyright © 2012 CA.
All rights reserved.
|
|