| @@ -5,7 +5,7 @@ bind \- Arrange for events to invoke Tk scripts · 4 unmodified lines |
| 5 | \f5bind\fI tag sequence script\fR | 5 | \f5bind\fI tag sequence script\fR |
| 6 | .sp | 6 | .sp |
| 7 | \f5bind\fI tag sequence \f5+\fIscript\fR | 7 | \f5bind\fI tag sequence \f5+\fIscript\fR |
| 8 | .SH INTRODUCTION | 8 | .SH DESCRIPTION |
| 9 | The \f5bind\fR command associates Tk scripts with window events. | 9 | The \f5bind\fR command associates Tk scripts with window events. |
| 10 | If all three arguments are specified, \f5bind\fR will | 10 | If all three arguments are specified, \f5bind\fR will |
| 11 | arrange for \fIscript\fR (a Tk script) to be evaluated whenever | 11 | arrange for \fIscript\fR (a Tk script) to be evaluated whenever |
| @@ -22,7 +22,7 @@ If \fIscript\fR is prefixed with a ``-'', then any existing binding for · 10 unmodified lines |
| 22 | \fIsequence\fR, whose script is exactly the same as \fIscript\fR, is removed. | 22 | \fIsequence\fR, whose script is exactly the same as \fIscript\fR, is removed. |
| 23 | The \fItag\fR argument gives the pathname of the window | 23 | The \fItag\fR argument gives the pathname of the window |
| 24 | to which \fIsequence\fR is bound. | 24 | to which \fIsequence\fR is bound. |
| 25 | .SH "EVENT PATTERNS" | 25 | .SS Event Patterns |
| 26 | The \fIsequence\fR argument specifies a sequence of one or more | 26 | The \fIsequence\fR argument specifies a sequence of one or more |
| 27 | event patterns, with optional white space between the patterns. Each | 27 | event patterns, with optional white space between the patterns. Each |
| 28 | event pattern may | 28 | event pattern may |
| @@ -32,11 +32,11 @@ may not be a space character or the character \f5<\fR. This form of · 3 unmodified lines |
| 32 | pattern matches a \f5KeyPress\fR event for the particular | 32 | pattern matches a \f5KeyPress\fR event for the particular |
| 33 | character. The second form of pattern is longer but more general. | 33 | character. The second form of pattern is longer but more general. |
| 34 | It has the following syntax: | 34 | It has the following syntax: |
| 35 | .RS | 35 | .IP |
| 36 | .EX | 36 | .EX |
| 37 | \f5<\fIevent\f5-\fIevent\f5-\fR...\f5-\fIevent\f5>\fR | 37 | \f5<\fIevent\f5-\fIevent\f5-\fR...\f5-\fIevent\f5>\fR |
| 38 | .EE | 38 | .EE |
| 39 | .RE | 39 | .PP |
| 40 | The following events are accepted: | 40 | The following events are accepted: |
| 41 | .TP | 41 | .TP |
| 42 | .BR Key \ or\ Keypress | 42 | .BR Key \ or\ Keypress |
| @@ -98,7 +98,14 @@ The event of the widget getting the keyboard focus. · 55 unmodified lines |
| 98 | .TP | 98 | .TP |
| 99 | .B FocusOut | 99 | .B FocusOut |
| 100 | The event of the widget losing the keyboard focus. | 100 | The event of the widget losing the keyboard focus. |
| | 101 | .TP |
| | 102 | .B Destroy |
| | 103 | The event of the widget being destroyed. |
| | 104 | See |
| | 105 | .IR destroy (9) |
| | 106 | for details of widget destruction. |
| 101 | .RE | 107 | .RE |
| | 108 | .PP |
| 102 | The event sequence can contain any combination of the above | 109 | The event sequence can contain any combination of the above |
| 103 | events. They are treated independently, and if any of the | 110 | events. They are treated independently, and if any of the |
| 104 | events occur, the sequence matches. You cannot combine | 111 | events occur, the sequence matches. You cannot combine |
| @@ -106,14 +113,7 @@ key presses of more than one key. Events will not be combined · 1 unmodified line |
| 106 | on delivery, except that | 113 | on delivery, except that |
| 107 | .B Motion | 114 | .B Motion |
| 108 | events may be combined with button presses (possibly doubled). | 115 | events may be combined with button presses (possibly doubled). |
| 109 | .TP | 116 | .SS Binding Scripts and Substitutions |
| 110 | .B Destroy | | |
| 111 | The event of the widget being destroyed. | | |
| 112 | See | | |
| 113 | .IR destroy (9) | | |
| 114 | for details of widget destruction. | | |
| 115 | | | |
| 116 | .SH "BINDING SCRIPTS AND SUBSTITUTIONS" | | |
| 117 | The \fIscript\fR argument to \f5bind\fR is a Tk script, | 117 | The \fIscript\fR argument to \f5bind\fR is a Tk script, |
| 118 | which will be executed whenever the given event sequence occurs. | 118 | which will be executed whenever the given event sequence occurs. |
| 119 | If \fIscript\fR contains | 119 | If \fIscript\fR contains |