Previous Topic: Modify Menu BarsNext Topic: Functions Useful in Menu Items


Menu Designer Dialog

Note: You can access the Menu Designer only while editing HTMPL forms with a name beginning with “menubar_”, such as menubar_admin.htmpl.

The Menu Designer dialog appears when you select Menu Designer from the Tools menu, or double-click the menu shown in the Design tab of a menubar form. Use the Menu Designer dialog to add a menu bar, menus, submenus, and menu commands to the open form. The Menu Editor dialog contains the following controls:

Menu List

From the menu list, select the menu item you want to change. To change the menu label, for example, select a menu label from the list, type a new name in the Caption text box, and click Apply.

Add

Click to add a new item to the end of the menu list.

Insert

Click to insert a new item above the selected item in the menu list.

Delete

Click to delete the selected item from the menu list.

Up Arrow Click to move the selected menu item up one level.

Down Arrow Click to move the selected menu item down one level.

Right Arrow Click to move the selected menu item one level to the right, for example, to define the item as a submenu or command instead of a menu.

Left Arrow Click to move the selected menu item one level to the left, for example to define the item as a menu instead of a submenu or command.

Note: Only one level of indentation is possible.

Caption

Enter the name for the selected menu item. See the Caption property for more information.

Function

Enter the JavaScript function to execute when the user clicks the menu. See the description of the Function property for more details, including some pre-defined functions that maybe useful in menus.

ID

Enter the HTML/JavaScript id to be assigned to the menu item.

Hot Key

Enter a list of characters directing CA SDM’s selection of the hotkey for this menu item. The hotkey is underlined in the menu caption when it is displayed. CA SDM typically selects the first key in the menu caption not already in use as a hotkey. You can specify one or more characters here to restrict the selection to those characters, or specify one or more characters preceded by an explanation point to prevent selection of those characters.

Image

Enter the location of the image that you want to appear next to the menu item.

Internal

Select this option to specify that the JavaScript invoked by the function should be executed in the context of the current window (which could be a pop-up detail window). Leave this option unchecked to specify that the function should be executed in the context of the main form.

Variable

Enter the JavaScript variable to be assigned to the menu item.

Tool Bar

Adds a tool bar icon and tooltip that corresponds to a non-top-level menu item.

Icon File

Identifies the location of the Tool Bar icon.

Tip

Specifies the tooltip text.

OK

Click to close the dialog and save your changes.

Cancel

Click to close the dialog without saving changes.