summaryrefslogtreecommitdiffstats
path: root/library/demos/menu.tcl
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2003-11-03 15:30:45 (GMT)
committerdkf <dkf@noemail.net>2003-11-03 15:30:45 (GMT)
commitffc6c0ab5d75ee004507f63b4ac882d4277d0c69 (patch)
tree85e4cc9231f1d3d491a3a13dfe56c421c2572707 /library/demos/menu.tcl
parent0b267c39197cc80a794cb35dbfa51adef7e393d5 (diff)
downloadtk-ffc6c0ab5d75ee004507f63b4ac882d4277d0c69.zip
tk-ffc6c0ab5d75ee004507f63b4ac882d4277d0c69.tar.gz
tk-ffc6c0ab5d75ee004507f63b4ac882d4277d0c69.tar.bz2
Make demo location independent of main Tk library location. [Patch 832691]
FossilOrigin-Name: 3672df6a787e044c07bbb66d4ee155b2cd897f30
Diffstat (limited to 'library/demos/menu.tcl')
-rw-r--r--library/demos/menu.tcl5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/demos/menu.tcl b/library/demos/menu.tcl
index 97272e8..716294f 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.5 2003/08/20 23:02:18 hobbs Exp $
+# RCS: @(#) $Id: menu.tcl,v 1.6 2003/11/03 15:31:18 dkf Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -114,8 +114,9 @@ $m invoke 7
set m $w.menu.icon
$w.menu add cascade -label "Icons" -menu $m -underline 0
menu $m -tearoff 0
+# Main widget program sets variable tk_demoDirectory
$m add command \
- -bitmap @[file join $tk_library demos images pattern.bmp] \
+ -bitmap @[file join $tk_demoDirectory images pattern.bmp] \
-hidemargin 1 \
-command {
tk_dialog .pattern {Bitmap Menu Entry} {The menu entry you invoked displays a bitmap rather than a text string. Other than this, it is just like any other menu entry.} {} 0 OK