HyperWorks Desktop

*MenuItem()

Creates a user-defined menu item.

*MenuItem()

Creates a user-defined menu item.

Previous topic Next topic No expanding text in this topic  

*MenuItem()

Creates a user-defined menu item.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*MenuItem(var_name, label [ MACRO|REPORT|TOOL|EXE|SCRIPT|TCL, res_name] )

Arguments

Name

Description

 

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.

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()

Application

MotionView, HyperView, HyperGraph, TextView, and MediaView.

Context

*BeginMenu()

*BeginPlotDefaults()

*BeginDefaults()

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.

See also

 

*BeginMenu()

List of Preference Statements