summaryrefslogtreecommitdiffstats
path: root/doc/menu.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-14 08:57:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-14 08:57:03 (GMT)
commit939adaec382ce7257869e18efa3ab353edda0ed5 (patch)
tree50b33044dd56b63633e734e9bf0725cdd7ba7e4c /doc/menu.n
parentdfde3458e7bc27e3eef496b2b65d38a93092b9aa (diff)
parent4b62f1fb163792e9cc42e12ee5e803ae187cb609 (diff)
downloadtk-939adaec382ce7257869e18efa3ab353edda0ed5.zip
tk-939adaec382ce7257869e18efa3ab353edda0ed5.tar.gz
tk-939adaec382ce7257869e18efa3ab353edda0ed5.tar.bz2
merge core-8-5-branch
Diffstat (limited to 'doc/menu.n')
-rw-r--r--doc/menu.n15
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/menu.n b/doc/menu.n
index 6d0dc8a..1c943f9 100644
--- a/doc/menu.n
+++ b/doc/menu.n
@@ -285,15 +285,10 @@ operations on the widget. It has the following general form:
determine the exact behavior of the command.
.PP
Many of the widget commands for a menu take as one argument an
-indicator of which entry of the menu to operate on. These
+indicator of which entry of the menu to operate on. These
indicators are called \fIindex\fRes and may be specified in
any of the following forms:
.TP 12
-\fInumber\fR
-Specifies the entry numerically, where 0 corresponds
-to the top-most entry of the menu, 1 to the entry below it, and
-so on.
-.TP 12
\fBactive\fR
Indicates the entry that is currently active. If no entry is
active then this form is equivalent to \fBnone\fR. This form may
@@ -323,6 +318,11 @@ For example,
.QW \fB@0\fR
indicates the top-most entry in the window.
.TP 12
+\fInumber\fR
+Specifies the entry numerically, where 0 corresponds
+to the top-most entry of the menu, 1 to the entry below it, and
+so on.
+.TP 12
\fIpattern\fR
If the index does not satisfy one of the above forms then this
form is used. \fIPattern\fR is pattern-matched against the label of
@@ -330,6 +330,9 @@ each entry in the menu, in order from the top down, until a
matching entry is found. The rules of \fBTcl_StringMatch\fR
are used.
.PP
+If the index could match more than one of the above forms, then
+the form earlier in the above list takes precedence.
+.PP
The following widget commands are possible for menu widgets:
.TP
\fIpathName \fBactivate \fIindex\fR