Update to tk 8.5.19
This commit is contained in:
17
doc/menu.n
17
doc/menu.n
@@ -5,8 +5,8 @@
|
||||
'\" See the file "license.terms" for information on usage and redistribution
|
||||
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
'\"
|
||||
.so man.macros
|
||||
.TH menu n 4.1 Tk "Tk Built-In Commands"
|
||||
.so man.macros
|
||||
.BS
|
||||
'\" Note: do not modify the .SH NAME line immediately below!
|
||||
.SH NAME
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user