|
|
1.1 root 1: # mkTear w
2: #
3: # Create a top-level window that displays a help message on tear-off
4: # menus.
5: #
6: # Arguments:
7: # w - Name to use for new top-level window.
8:
9: proc mkTear {{w .t1}} {
10: catch {destroy $w}
11: toplevel $w
12: dpos $w
13: wm title $w "Information On Tear-Off Menus"
14: wm iconname $w "Info"
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"
18:
19: pack append $w $w.msg {top fill} $w.ok {bottom fill}
20: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.