Tornado API Reference : GUI Tcl Library (UNIX)

menu

NAME

menu - menu bar manager

TCL PROCEDURES

menuCreate - create a new menu on the top menu bar
menuButtonCreate - create a button in a top level menu

DESCRIPTION

These routines allow the menu management for Tcl UNIX GUI.

SEE ALSO

menu


GUI Tcl Library (UNIX) : Tcl Procedures

menuCreate

NAME

menuCreate - create a new menu on the top menu bar

LOCALE

UNIX GUI

SYNOPSIS

menuCreate [-help] name mnemonic

DESCRIPTION

This command creates a new menu on the application's top menu bar. If -help is specified, this menu appears on the far right of the menu bar, in the normal help position. The menu has the specified name and mnemonic character. The mnemonic character appears underlined in the menu's name and can be used as a keyboard binding of the menu. Items are added to the menu with menuButtonCreate. "Creating" a menu item that already exists has no effect.

SUBMENUS

If a menu name has the form root|name, where root is the name of an existing menu, a submenu with the given name is created under the menu item root. This can be nested; for example, File|Open|Data would create a "Data" menu under the "Open" menu of the "File" menu. Root menus must be created before submenus.

SEE ALSO

menuButtonCreate


GUI Tcl Library (UNIX) : Tcl Procedures

menuButtonCreate

NAME

menuButtonCreate - create a button in a top level menu

LOCALE

UNIX GUI

SYNOPSIS

menuButtonCreate menu name [mnemonic binding]

DESCRIPTION

This function creates a menu button in the specified menu. The button is given the supplied name and mnemonic character. Binding is a Tcl expression that is executed when the button is pressed. If mnemonic and binding are not supplied, then a menubar separator (a horizontal line used to separate groups of menu items) is created instead of a button.

SEE ALSO

menuCreate