~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to gcl-tk/demos/mkTear.tcl

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
    pack $w.msg $w.ok -pady 5
 
19
}