interface menubar write

Allows you to write the menubar building commands to 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 further read to build a new menubar.

Format:

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

Example:

 
interface menubar write &
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 where the menubar commands are to be written

Extended Definition:

1. The menubar commands data for any menubar can be 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 ‘export 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 written in the form of a file with extension .mnu. This file can be read directly to create similar menubar on a window.