Artifact
23fbd9d7d7bcc4dd66f0fd9ef71c906cbf2c92d7:
Attachment "testmenu.tcl" to
ticket [1192095f]
added by
wildcard_25
2005-04-29 07:28:44.
menu .m
.m add cascade \
-label "File" \
-menu .m.file \
-underline 0
.m add cascade \
-label "Edit" \
-menu .m.edit \
-underline 0
.m add cascade \
-label "Help" \
-menu .m.help \
-underline 0
menu .m.file
.m.file add command \
-label "New..." \
-command "puts New..."
menu .m.edit
.m.edit add command \
-label "Recompute..." \
-command "puts Recompute..."
menu .m.help
.m.help add command \
-label "About..." \
-command "puts About..."
bind .m <<MenuSelect>> \
{puts "in menu %W\tactive menu item [%W index active]\t[%W entrycget active -label]"}
. configure -menu .m