]>
git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/tcl-lib/help.tcl
2 # toplevel widget to display a help text (modal)
4 # $Header: /cvs/Darwin/Security/SecuritySNACCRuntime/tcl-lib/help.tcl,v 1.1.1.1 2001/05/18 23:14:10 mb Exp $
6 # Revision 1.1.1.1 2001/05/18 23:14:10 mb
7 # Move from private repository to open source repository
9 # Revision 1.1.1.1 1999/03/16 18:06:55 aram
10 # Originals from SMIME Free Library.
12 # Revision 1.1 1997/01/01 23:11:54 rj
16 #\[sep]-----------------------------------------------------------------------------------------------------------------------------
17 proc help
{w helptext
} \
22 set dismiss
$help.dismiss
26 toplevel $help -class Dialog
29 wm geometry
$help +$x+$y
32 text $text -borderwidth 2 -relief sunken
-yscrollcommand [list $sb set] -width 32 -height 8
33 scrollbar $sb -relief sunken
-command [list $text yview
] -width 10 -cursor arrow
34 button $dismiss -text Dismiss
-command [list destroy $help]
36 pack $dismiss -side bottom
-pady 2
37 pack $sb -side right
-fill y
38 pack $text -expand true
-fill both
40 bind $text <Any-Key
> [list destroy $help]
42 $text insert end
$helptext