interface menubar read

Allows you to read the menubar building commands from a file.
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. Those commands can be written to a file with .mnu extension.
This file can be read to build a new menubar by using this command. Or else, a field can be written to and read back by using this command.

Format:

 
interface menubar read
menubar_name =
an existing GI_menubar
file_name =
string
field_name =
an existing GI_field

Example:

 
interface menubar read &
menubar_name =
.gui.win.mnbr1 &
file_name =
"C:/menubar_data.mnu"

Description:

 
Parameter
Value Type
Description
menubar_name
An Existing GI_menubar
Specifies the name of an existing menubar
file_name
String
Specifies a remote file name from where the menubar commands are to be read

Extended Definition:

1. The menubar commands data for any menubar are written to a file with extension .mnu. This file can be accessed while using the ‘menubar read’ command to create a new menubar with same commands.
2. Alternatively, the same file can be written by using the ‘import text’ tab from the ‘menubar builder’.
As an Example, to create a zoom menu on menubar, following text appears in 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
-------------------------------------------------------
which can be read from of a file with extension .mnu writtenm previously. This file can be read directly to create similar menubar on a window.
3. Similarly, a individual ‘field’ previously written can be accessed by selecting the parameter ‘field_name’, which will read data related to a field.