*MenuItem()
Creates a user-defined menu item.
Syntax
*MenuItem (var_name, label [ MACRO|REPORT|TOOL|EXE|SCRIPT|TCL, res_name] )
Application
MotionView, HyperView, HyperGraph, TextView, and MediaView.
Inputs
- var_name
- The variable name of the menu item (currently not used).
- label
- The label to be displayed in the interface.
- MACRO|REPORT|TOOL|EXE|SCRIPT|TCL
- The resource type to be associated with the menu item, namely, a macro, shell, report, or custom wizard, executable, script, or Tcl command.
- res_name
- The resource name to be associated with the menu item.
Context
*BeginMenu()
*BeginPlotDefaults()
*BeginDefaults()
Example
*BeginDefaults()
*BeginPlotDefaults()
*RegisterTemplexFunction("Filter_functions.tpl")
*BeginMenu(filter_menu,"Filter")
*MenuItem(dummy,"Batch General", MACRO, macro_batch)
*MenuItem(dummy,"Batch Mirror", MACRO, macro_batchmir)
*MenuItem(dummy,"Butterworth", MACRO, macro_butter)
*MenuItem(dummy,"FIR100", MACRO, macro_fir)
*MenuItem(dummy,"Freq Domain Diff", MACRO, macro_fdd)
*MenuItem(dummy,"IR", MACRO, macro_ir)
*MenuItem(dummy,"Resample", MACRO, macro_sample)
*Separator()
*MenuItem(dummy,"SAE60", MACRO, macro_sae60)
*MenuItem(dummy,"SAE180", MACRO, macro_sae180)
*MenuItem(dummy,"SAE600", MACRO, macro_sae600)
*MenuItem(dummy,"SAE1000", MACRO, macro_sae1000)
*MenuItem(dummy,"SAE General", MACRO, macro_sae)
*MenuItem(dummy,"SAE Mirror", MACRO, macro_saemir)
*EndMenu()
*EndPlotDefaults()
*EndDefaults()
Comments
When this menu item is selected, the object associated with it is displayed.
If the resource type (MACRO|REPORT|TOOL) and res_name are not specified, the menu item appears in the menu but does not perform any action when selected.