diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-29 19:40:55 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-29 19:40:55 (GMT) |
commit | 2817b85e0527030b511e160a195365123fed2d07 (patch) | |
tree | 2bfba12abff371ec499d717c0a713b5ad8b4b7c0 /doc/menu.n | |
parent | 2a199bdd9fa352a6111e39f8ff18135da47a6e3c (diff) | |
parent | 2cf5a82a75201dd866c90d3add0462c19854d88f (diff) | |
download | tk-2817b85e0527030b511e160a195365123fed2d07.zip tk-2817b85e0527030b511e160a195365123fed2d07.tar.gz tk-2817b85e0527030b511e160a195365123fed2d07.tar.bz2 |
Merge 8.6
Diffstat (limited to 'doc/menu.n')
-rw-r--r-- | doc/menu.n | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -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 . |