*BrowserContextMenuItem()
Creates a new, user-defined コンテキストメニュー item in the Sessionブラウザ that links selected items to Tcl scripts.
Syntax
*BrowserContextMenuItem (label, path, TCL procedure, entity type)
Application
HyperGraph
Inputs
- label
- The label displayed when you right-click on the コンテキストメニュー.
- path
- Path to the Tcl script field that gets sourced when the menu item is selected.
- TCL procedure
- Tcl procedure that is executed when a menu item is selected.
- entity type
- Entity to which the menu is associated. Possible values include plot, curve, or page.
Context
*BeginDefaults() block.
Example
*BeginDefaults()
*BrowserContextMenuItem("Turn On",{getenv("ALTAIR_HOME") + "/utility/scripts/plotting/general_context_menu_curve.tcl"},::general_curve_context_menu::on_selected_curves,curve)
*BrowserContextMenuItem("Turn Off",{getenv("ALTAIR_HOME") + "/utility/scripts/plotting/general_context_menu_curve.tcl"},::general_curve_context_menu::off_selected_curves,curve)
*BrowserContextMenuItem("Delete",{getenv("ALTAIR_HOME") + "/utility/scripts/plotting/general_context_menu_curve.tcl"},::general_curve_context_menu::delete_selected_curves,curve)
*BeginBrowserContextMenu("Single Curve Math")
*BrowserContextMenuItem("Integral",{getenv("ALTAIR_HOME") + "/utility/scripts/plotting/include/context_menu_curve.tcl"},::vst_curve_context_menu::integrate_curve,curve)
*BrowserContextMenuItem("Double Integral",{getenv("ALTAIR_HOME") + "/utility/scripts/plotting/include/context_menu_curve.tcl"},::vst_curve_context_menu::dblintegrate_curve,curve)
*BrowserContextMenuItem("Derivitive",{getenv("ALTAIR_HOME") + "/utility/scripts/plotting/include/context_menu_curve.tcl"},::vst_curve_context_menu::derivitive_curve,curve)
*EndBrowserContextMenu()
*EndDefaults()