Technical data
add_submenu
270
-
Simulator Command Reference ModelSim EE/PLUS Reference Manual
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 (p264),
add_menucb
command (p266),
add_menuitem
command (p268),
add_separator
command (p269), and the
change_menu_cmd
command (p282)
The
add_submenu
command is also used as part of the
add_menu
(p264)
example.