summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-09-06 19:40:01 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-09-06 19:40:01 (GMT)
commitc8f654438ac6a15f61c7ef1972c1b0a4f537bb31 (patch)
tree55edde9e27b15d34e0092d4c6b3eff75da6e5b25 /doc
parent53daaeea5ce82db538c36860b09544ccc43a2c4e (diff)
parent2a97a73cb77f8574261479fee80ab7f0ca891e30 (diff)
downloadtk-c8f654438ac6a15f61c7ef1972c1b0a4f537bb31.zip
tk-c8f654438ac6a15f61c7ef1972c1b0a4f537bb31.tar.gz
tk-c8f654438ac6a15f61c7ef1972c1b0a4f537bb31.tar.bz2
Fixed bug [1581435fff] - Documented precedence order in the matching process of the index string
Diffstat (limited to 'doc')
-rw-r--r--doc/menu.n17
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/menu.n b/doc/menu.n
index e26c2d8..1067f38 100644
--- a/doc/menu.n
+++ b/doc/menu.n
@@ -304,16 +304,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
@@ -348,6 +342,12 @@ 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
@@ -356,6 +356,9 @@ each entry in the menu, in order from the top down, until a
matching entry is found. The rules of \fBstring match\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