interface > interface option_menu create

www.kxcad.net Home > CAE Index > MSC Software Index > Adams MD R2 Index


Your Ad Here

interface option_menu create
Allows you to create a new information window.
Format:
 
Example:
interface option_menu create
option_menu_name = test
enabled = yes
help_text = help
documentation_text = doc
units = relative
horiz_resizing = attach_left
vert_resizing = attach_top
location = 0,0
height = 1
width = 1
choices = one, two, three
values = "10,20,30"
commands = "model display fit_to_view = no view_name = all","interface dialog &
undisplay dialog=.gui.moag","interface dialog display dialog=.gui.moag"
current_choice = two
Description:
 
A New GI_opt_menu
Extended Definition:
1.
A new option menu is created if the menu with the specified name does not exist. This menu has multiple choices offered as various options or commands are to be executed. Each option or choice has an associated command.
2.
3.
4.
5.
The vertical and horizontal resizing options are used to adjust the placement of the option menu on the existing dialogue box. For example, attach_left; attach_top options for Horiz_resizing and Vert_resizing will place the option menu on the top left corner of the dialogue box. The location can also be specified from the top left corner by adjusting the parameter ‘location’.
6.
The size of the option menu window can be specified with respect to the Adams window size. The value for parameter height and width should be a real number between 0.0 and 2.0, where 2.0 represents the height of the Adams/View window. Therefore, a value of 1.0 will set the info window to be half as high as the Adams/View window.
7.
Multiple choices can be specified for a number of commands to be executed. The choice can be offered as any string variable. Similarly, the choices can also be specified as values by specifying the parameter, ‘value’9. The number of commands equal to the choices offered are entered within quotation marks, separated by commas.
8.
Tips:
If the values of the choices in item 12 above are numeric, it should be quoted as a string. Similarly, the complete commands should be entered with quotations. Multiple commands are separated by commas.
Your Ad Here