3 # Create a top-level window that displays a help message on tear-off
7 # w - Name to use for new top-level window.
9 proc mkTear
{{w .t1
}} {
13 wm title
$w "Information On Tear-Off Menus"
15 message $w.msg
-font -Adobe-times
-medium
-r
-normal
--*-180* -aspect 250 \
16 -text "To tear off a menu, press mouse button 2 over the menubutton for the menu, then drag the menu with button 2 held down. You can reposition a torn-off menu by pressing button 2 on it and dragging again. To unpost the menu, click mouse button 1 over the menu's menubutton. Click the \"OK\" button when you're finished with this window."
17 button $w.ok
-text OK
-command "destroy $w"
19 pack append $w $w.msg
{top fill
} $w.ok
{bottom fill
}