*BeginMenu()

Indicates the beginning of a menu block.

Syntax

*BeginMenu (var_name, label)

Application

MotionView, HyperView, HyperGraph, TextView, and MediaView.

Inputs

var_name
The variable name of the menu (currently not used).
label
The label of the menu to appear in the interface.

Context

*BeginDefaults

*BeginPlotDefaults

*BeginGraphicDefaults

*BeginTextEditorDefaults

*BeginModelDefaults

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

A *BeginMenu() block may be placed inside a *BeginMenu() block to create submenus.

Every *BeginMenu() statement requires a closing *EndMenu() statement.

Menus placed within a *BeginModelDefaults(), *BeginGraphicDefaults(), *BeginPlotDefaults(), or *BeginTextEditorDefaults() block are added only to the corresponding window mode.