summaryrefslogtreecommitdiffstats
path: root/doc/menu.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-29 19:40:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-29 19:40:55 (GMT)
commit2817b85e0527030b511e160a195365123fed2d07 (patch)
tree2bfba12abff371ec499d717c0a713b5ad8b4b7c0 /doc/menu.n
parent2a199bdd9fa352a6111e39f8ff18135da47a6e3c (diff)
parent2cf5a82a75201dd866c90d3add0462c19854d88f (diff)
downloadtk-2817b85e0527030b511e160a195365123fed2d07.zip
tk-2817b85e0527030b511e160a195365123fed2d07.tar.gz
tk-2817b85e0527030b511e160a195365123fed2d07.tar.bz2
Merge 8.6
Diffstat (limited to 'doc/menu.n')
-rw-r--r--doc/menu.n21
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/menu.n b/doc/menu.n
index ac60e65..338ce6a 100644
--- a/doc/menu.n
+++ b/doc/menu.n
@@ -470,18 +470,19 @@ a menu entry does not automatically unpost the menu; the default
bindings normally take care of this before invoking the \fBinvoke\fR
widget command.
.TP
-\fIpathName \fBpost \fIx y\fR
+\fIpathName \fBpost \fIx y\fR ?\fIindex\fR?
.
Arrange for the menu to be displayed on the screen at the root-window
-coordinates given by \fIx\fR and \fIy\fR. These coordinates are
-adjusted if necessary to guarantee that the entire menu is visible on
-the screen. This command normally returns an empty string.
-If the \fB\-postcommand\fR option has been specified, then its value is
-executed as a Tcl script before posting the menu and the result of
-that script is returned as the result of the \fBpost\fR widget
-command.
-If an error returns while executing the command, then the error is
-returned without posting the menu.
+coordinates given by \fIx\fR and \fIy\fR. If an index is specified
+the menu will be located so that the entry with that index is
+displayed at the point. These coordinates are adjusted if necessary to
+guarantee that the entire menu is visible on the screen. This command
+normally returns an empty string. If the \fB\-postcommand\fR option
+has been specified, then its value is executed as a Tcl script before
+posting the menu and the result of that script is returned as the
+result of the \fBpost\fR widget command. If an error returns while
+executing the command, then the error is returned without posting the
+menu.
.TP
\fIpathName \fBpostcascade \fIindex\fR
.