Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


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> [<shortcut>]

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.

<shortcut>

Number of the letter in the menu name that is to be used as the shortcut. Numbering starts with 0 (i.e., first letter = 0, second letter = 1, third letter = 2, etc.). Optional. Default is "1", which indicates no shortcut is to be used.

See also

add_menu, add_menucb, add_menuitem, add_separator, change_menu_cmd

The add_submenu command is also used as part of the add_menu example.


Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase