summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2001-11-12 15:01:32 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2001-11-12 15:01:32 (GMT)
commit815f03982a6b56c27cdd7758da9c668e6f13d88a (patch)
tree6f329df80415a08acd1bea21f44d1974b46471de /library
parenta08af0fafd7e372db933bc5c15da3941bed0a9da (diff)
downloadtk-815f03982a6b56c27cdd7758da9c668e6f13d88a.zip
tk-815f03982a6b56c27cdd7758da9c668e6f13d88a.tar.gz
tk-815f03982a6b56c27cdd7758da9c668e6f13d88a.tar.bz2
Yet more -compound showing off, prompted by Vince Darley
Diffstat (limited to 'library')
-rw-r--r--library/demos/menu.tcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/demos/menu.tcl b/library/demos/menu.tcl
index 097b725..45ca931 100644
--- a/library/demos/menu.tcl
+++ b/library/demos/menu.tcl
@@ -3,7 +3,7 @@
# This demonstration script creates a window with a bunch of menus
# and cascaded menus using menubars.
#
-# RCS: @(#) $Id: menu.tcl,v 1.2 1998/09/14 18:23:29 stanton Exp $
+# RCS: @(#) $Id: menu.tcl,v 1.3 2001/11/12 15:01:33 dkf Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -131,6 +131,12 @@ menu $m -tearoff 0
foreach i {{An entry} {Another entry} {Does nothing} {Does almost nothing} {Make life meaningful}} {
$m add command -label $i -command [list puts "You invoked \"$i\""]
}
+$m entryconfigure "Does almost nothing" \
+ -bitmap questhead -compound left -command {
+ tk_dialog .compound {Compound Menu Entry} {The menu entry you invoked\
+ displays both a bitmap and a text string. Other than this, it\
+ is just like any other menu entry.} {} 0 OK
+}
set m $w.menu.colors
$w.menu add cascade -label "Colors" -menu $m -underline 1