Technical data

disable_menuitem
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
301
disable_menuitem
The
disable_menuitem
command disables a specified menu item within the
specified menu_path of the specified window. The menu item will become
grayed-out, and nonresponsive. Returns nothing.
Syntax
disable_menuitem
<window_name> <menu_path> <label>
Arguments
<window_name>
Tk path of the window containing the menu. Required.
<menu_path>
Name of the Tk menu-widget path. The path may include a submenu as shown in the
example below. Required.
<label>
Menu item text. Required.
Examples
disable_menuitem .mywindow file.save "Save Results As..."
This command locates the mywindow window, and disables the Save Results As... menu
item in the save submenu of the file menu.
See also
enable_menuitem
command (p311)