interface menubar build

Allows you to build an existing menubar to add button and commands to it.
The menubar can be created on main_window, popup_window, ppt_main_window, or a user defined custom window.
This menubar is built up by adding menus, which are associated with Adams commands.

Format:

 
interface menubar build
menubar_name =
An Existing GI_menubar

Example:

 
interface menubar build &
menubar_name =
mnbr1

Description:

 
Parameter
Value Type
Description
menubar_name
An Existing GI_menubar
Specifies the name of an existing menubar

Extended Definition:

1. The command ‘interface menubar build’ will ask for the ‘menubar name’. Enter the name of an existing menubar created by ‘create’ command.
2. A ‘menubar builder’ will open up. It will have two object tabs namely, 1) Menu bar and 2) Edit. The ‘Edit’ tab can be used to edit the text contents of the menubar window. The ‘Menu bar’ tab has various command options namely, 1) Load, 2) Apply, 3) Reload, 4) Import text, 5) Export text and 6) Exit.
3. Add the commands to the text window of the Menu-bar, and click ‘Load’ tab which will open a database navigator to prompt for a GUI where the menubar should be loaded. Select the proper GUI to load the menubar. If you do any further changes to the text in menubar-text-window, click reload to update the changes. Lastly, click ‘Apply’ to display the menubar on GUI.
As an Example, to create a zoom menu on menubar write the following into the menubar-text-window
MENU1= zoom control
NAME=vwc_pop_up__1
BUTTON2 Zoom In/Out <z>
HELP=Dynamically zoom the view
CMD=interface mode repeat=push mode=dyn_view_zoom
-------------------------------------------------------
After writing the text into menubar-text-window, select ‘Load’ from the main menu. It will prompt the GUI namely, 1) main_window, 2) popup_window, 3) ppt_main_window, and 4) user defined custom window (if already created).
Select the option 4, to display the menubar on a user defined custom window. It will display the zoom tab on the menubar on the custom window.
By clicking this tab to perform zooming on the Adams View window.