⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bindtags.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" Copyright (c) 1990 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) bindtags.n 1.9 96/11/30 14:54:49'\" .so man.macros.TH bindtags n 4.0 Tk "Tk Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEbindtags \- Determine which bindings apply to a window, and order of evaluation.SH SYNOPSIS\fBbindtags \fIwindow \fR?\fItagList\fR?.BE.SH DESCRIPTION.PPWhen a binding is created with the \fBbind\fR command, it isassociated either with a particular window such as \fB.a.b.c\fR,a class name such as \fBButton\fR, the keyword \fBall\fR, or anyother string.All of these forms are called \fIbinding tags\fR.Each window contains a list of binding tags that determine howevents are processed for the window.When an event occurs in a window, it is applied to each of thewindow's tags in order:  for each tag, the most specific bindingthat matches the given tag and event is executed.See the \fBbind\fR command for more information on the matchingprocess..PPBy default, each window has four binding tags consisting of thename of the window, the window's class name, the name of the window'snearest toplevel ancestor, and \fBall\fR, in that order.Toplevel windows have only three tags by default, since the toplevelname is the same as that of the window.The \fBbindtags\fR command allows the binding tags for a window to beread and modified..PPIf \fBbindtags\fR is invoked with only one argument, then thecurrent set of binding tags for \fIwindow\fR is returned as a list.If the \fItagList\fR argument is specified to \fBbindtags\fR,then it must be a proper list; the tags for \fIwindow\fR are changedto the elements of the list.The elements of \fItagList\fR may be arbitrary strings;  however,any tag starting with a dot is treated as the name of a window;  ifno window by that name exists at the time an event is processed,then the tag is ignored for that event.The order of the elements in \fItagList\fR determines the order inwhich binding scripts are executed in response to events.For example, the command.CS\fBbindtags .b {all . Button .b}\fR.CEreverses the order in which binding scripts will be evaluated fora button named \fB.b\fR so that \fBall\fR bindings are invokedfirst, following by bindings for \fB.b\fR's toplevel (``.''), followed byclass bindings, followed by bindings for \fB.b\fR.If \fItagList\fR is an empty list then the binding tags for \fIwindow\fRare returned to the default state described above..PPThe \fBbindtags\fR command may be used to introduce arbitraryadditional binding tags for a window, or to remove standard tags.For example, the command.CS\fBbindtags .b {.b TrickyButton . all}\fR.CEreplaces the \fBButton\fR tag for \fB.b\fR with \fBTrickyButton\fR.This means that the default widget bindings for buttons, which areassociated with the \fBButton\fR tag, will no longer apply to \fB.b\fR,but any bindings associated with \fBTrickyButton\fR (perhaps somenew button behavior) will apply..SH "SEE ALSO"bind.SH KEYWORDSbinding, event, tag

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -