Spectrum OneClick right mouse menu pick to long for screen

Document ID : KB000044997
Last Modified Date : 04/12/2018
Show Technical Document Details
Issue:

After creating new custom menu picks for Spectrum OneClick, the list of menu items when you right mouse click on a model is to long for the screen. You cannot access the menu picks at the bottom of the list.

Cause:

There are too many menu picks in the list causing the menu picks at the bottom to become unavailable.

Resolution:

When creating custom menu picks, used nested menu tags to create sub-menus. This will save space on the list of menu items.

For example, I created a custom-menu-config.xml file to add Ping Local, Telnet Local and Traceroute Local menu picks from a menu called My Tools. The following is how it would typically look from the top level menu:

450886_menu1.png

 

The following is how it would typically look when right mouse clicking on a model. Notice how it takes up three lines in the right mouse menu pick:

450886_menu2.png

 

To create sub-menus, you need to nest menu tags in the custom-menu-config.xml file. The following is an example. Notice there are two menu tags one right after the other:

 

<root>

<menu name="com.aprisma.spectrum.app.swing.window.menu.Tools">

  <menu name="My Tools">

    <item name="Ping Local">

      <accelerator modifiers="2">VK_I</accelerator>

 

Now when I log into OneClick, I see the following from the top level menu for my menu picks. Notice under the Tools top level menu pick, I see a sub-menu for My Tools and under that, I see my three menu picks.

450886_submenu1.png

 

Now when I right mouse click on a model, I see the following. Instead of taking up three lines in the right mouse menu, it only takes up one line.

450886_submenu2.png

Additional Information:

Please reference the "Customizing the OneClick Console Menu" section of the documentation for more information.

https://docops.ca.com/ca-spectrum/10-3-0/en/customizing/oneclick-customization/customizing-the-oneclick-console-menu