diff options
author | fvogel <fvogelnew1@free.fr> | 2015-09-06 18:48:11 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-09-06 18:48:11 (GMT) |
commit | 32124ed50e83c59a5144190137414a3c6f5c7fb9 (patch) | |
tree | 3f501420718292a5dc80fbb8556f73450fae9b03 /doc | |
parent | 43fa4c24905499a1f9e52986e3bcc75e2ede53fb (diff) | |
parent | 7708c070940fa9d780429ace70c7643fb553872a (diff) | |
download | tk-32124ed50e83c59a5144190137414a3c6f5c7fb9.zip tk-32124ed50e83c59a5144190137414a3c6f5c7fb9.tar.gz tk-32124ed50e83c59a5144190137414a3c6f5c7fb9.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.n | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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 |