Technical data
enable_menuitem
ModelSim EE/SE Command Reference ModelSim Commands CR-79
enable_menuitem
The enable_menuitem command enables a previously-disabled menu item. The
menu item will be changed from grayed-out to normal, and will become
responsive. Returns nothing.
Syntax
enable_menuitem
<window_name> <menu_path> <label>
Arguments
<window_name>
Tk path of the window containing the menu. Required.
Note that the path for the Main window may be expressed as main or "". All other
window pathnames begin with a period (.) as shown in the example below.
<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
enable_menuitem .mywindow file.save "Save Results As..."
This command locates the mywindow window, and enables the previously-disabled Save
Results As... menu item in the save submenu of the file menu.
See also
disable_menuitem command
(CR-66)