Technical data
add_submenu
CR-32 ModelSim Commands ModelSim EE/SE Command Reference
add_submenu
The add_submenu command creates a cascading submenu within the specified
menu_path of the specified window. May be used within a submenu.
Returns the full Tk path to the new submenu widget.
Syntax
add_submenu
<window_name> <menu_path> <name> [<accel_key>]
Arguments
<window_name>
Tk path of the window containing the menu. Required.
<menu_path>
Name of the Tk menu widget plus submenu path. Required.
<name>
Name to be displayed on the submenu. Required.
<accel_key>
A number, starting from 0, of the letter to underline in the menu text. Used to
indicate a keyboard shortcut key. Optional. Default is to pick the first character in
<Text> that is unique across the menu items within the submenu.
If accel_key = -1, no letter is underlined and no acceleration key will be defined.
See also
add_menu command
(CR-26), add_menucb command (CR-28), add_menuitem
command
(CR-30), add_separator command (CR-31), and the
change_menu_cmd command
(CR-44)
The add_submenu command is also used as part of the add_menu
(CR-26)
example.