diff options
Diffstat (limited to 'doc/BindTable.3')
-rw-r--r-- | doc/BindTable.3 | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/doc/BindTable.3 b/doc/BindTable.3 index 24f8af5..223c37b 100644 --- a/doc/BindTable.3 +++ b/doc/BindTable.3 @@ -45,7 +45,7 @@ call to \fBTk_CreateBindingTable\fR. Identifies object with which binding is associated. .AP "const char" *eventString in String describing event sequence. -.AP "const char" *script in +.AP char *script in Tcl script to invoke when binding triggers. .AP int append in Non-zero means append \fIscript\fR to existing script for binding, @@ -61,6 +61,7 @@ Number of object identifiers pointed to by \fIobjectPtr\fR. Points to an array of object identifiers: bindings will be considered for each of these objects in order from first to last. .BE + .SH DESCRIPTION .PP These procedures provide a general-purpose mechanism for creating @@ -111,25 +112,25 @@ select relevant events, or to disallow the use of certain events in bindings. If an error occurred while creating the binding (e.g., \fIeventString\fR refers to a non-existent event), then 0 is returned and an error -message is left as the result of interpreter \fIinterp\fR. +message is left in \fIinterp->result\fR. .PP \fBTk_DeleteBinding\fR removes from \fIbindingTable\fR the binding given by \fIobject\fR and \fIeventString\fR, if such a binding exists. \fBTk_DeleteBinding\fR always returns \fBTCL_OK\fR. -In some cases it may reset the interpreter result to the default +In some cases it may reset \fIinterp->result\fR to the default empty value. .PP \fBTk_GetBinding\fR returns a pointer to the script associated with \fIeventString\fR and \fIobject\fR in \fIbindingTable\fR. If no such binding exists then NULL is returned and an error -message is left as the result of interpreter \fIinterp\fR. +message is left in \fIinterp->result\fR. .PP -\fBTk_GetAllBindings\fR returns in \fIinterp\fR's result a list +\fBTk_GetAllBindings\fR returns in \fIinterp->result\fR a list of all the event strings for which there are bindings in \fIbindingTable\fR associated with \fIobject\fR. -If there are no bindings for \fIobject\fR, the result will be an empty -string. +If there are no bindings for \fIobject\fR then an empty +string is returned in \fIinterp->result\fR. .PP \fBTk_DeleteAllBindings\fR deletes all of the bindings in \fIbindingTable\fR that are associated with \fIobject\fR. @@ -149,5 +150,6 @@ the object is skipped. \fBTk_BindEvent\fR continues through all of the objects, handling exceptions such as errors, \fBbreak\fR, and \fBcontinue\fR as described in the documentation for \fBbind\fR. + .SH KEYWORDS binding, event, object, script |