Technical data
change_menu_cmd
282
-
Simulator Command Reference ModelSim EE/PLUS Reference Manual
change_menu_cmd
The
change_menu_cmd
command changes the command to be executed for a
specified menu item label, in the specified menu, in the specified window. The
menu_path and label must already exist for this command to function. Returns
nothing.
Syntax
change_menu_cmd
<window_name> <menu_path> <label> <cmd>
Arguments
<window_name
>
Tk path of the window containing the menu. Required.
<menu_path>
Name of an existing Tk menu widget plus any submenu path. Required.
<label>
Current label on the menu item. Required.
<Cmd>
New Tcl command to be executed when selected. Required.
See also
add_menu
command (p264),
add_menucb
command (p266),
add_menuitem
command (p268),
add_separator
command (p269), and the
add_submenu
command (p270)