Managing Sessions Using CA Automation Point Windows › Customizing Menus › Adding New Submenus to Existing Menus
Adding New Submenus to Existing Menus
When you select a session or function window on the CA Automation Point desktop, the menu bar for the selected window displays at the top of the desktop window. If you wish to add a submenu to the menu bar of an existing menu, you'll first need to reference the name of the menu specified for the desktop window before creating a new submenu for it. The new submenu will appear only on those windows that use that menu. Follow these steps to customize the menu:
- Identify the MenuName specified for the function or session window you wish to customize. To determine the name of the menu used for a desktop window, go to Configuration Manager's, Session Definition Sets dialog and open the selected session or function window definition. See Window Attributes, menu edit box.
Note: If the menu setting is set to default, the actual name of the menu will follow these naming conventions:
- Default menus for function windows will have the same name as the function window type setting. For example, the Merged Msg window has a function window type of MERGEDMSG. Therefore, the default menu name for the Merged Msg window is MERGEDMSG.
- The default menu name for 3270 session windows with default terminal emulation specified is 'session_3278'.
- The default menu name for asynchronous session windows with default terminal emulation specified is 'session_asynch'.
- The default menu name for session windows with a non-default terminal emulation specified is 'session_' followed by the terminal emulation specified for the session.
- The default menu name for a session window with terminal emulation of 3278 models 2-5 is 'session_3278'. Similarly, the menu name for a session window with terminal emulation of 3279 models 2-5 is 'session_3279'. For example, if the terminal setting for a 3270 session is 3279_4, then the name of the default menu associated with this session is 'session_3279'.
- Add a SUBMENU statement to the user.mnu file. Specify the SUBMENU statement with your customized ITEM settings using a new SubmenuName. Edit user.mnu file to include the new SUBMENU statement and save.
- Add the following MENU statement to user.mnu file using MenuName determined in step 1 and SubmenuName determined in step 2.
MENU = MenuName , SUBMENU = SubmenuName
- Edit user.mnu file to include the new MENU statement and save.
Example:
Add the following MENU and SUBMENU statements to the user.mnu file to add a new submenu titled 'Refresh' to an existing menu defined for the Merged Msg window by CA Automation Point in the axc2p.mnu file. The default menu for the Merged Msg window is mergedmsg.
MENU = mergedmsg,
SUBMENU = b_refresh
SUBMENU = b_refresh, NAME=(~Refresh),
ITEM = ( '~Fast background updates', XCCMD('SESSCNTL BWUPDATE(1)')),
ITEM = ( 'Normal ~background updates', XCCMD('SESSCNTL BWUPDATE(5)')),
ITEM = ( '~Slow background updates', XCCMD('SESSCNTL BWUPDATE(9)'))
Copyright © 2012 CA.
All rights reserved.
|
|