home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
dirs
/
tcl_447.lzh
/
TCL
/
tcl.lzh
/
tcl
/
help
/
menu
< prev
next >
Wrap
Text File
|
1990-05-03
|
518b
|
15 lines
menu
----
menu add windowhandle menuname itemname subitemname proc
The "menu add" command takes a window name, menu name, item name and
optional subitem name (send an empty string if your item doesn't have
subitems), creates a corresponding menu entry for the named window,
and tags the item with the procedure (proc) or code to execute. When
the menu entry is selected, the attached Tcl code will be selected.
The menu is changed for the current window. Use the "window current"
command to change windows.