diff options
author | fvogel <fvogelnew1@free.fr> | 2019-02-02 17:51:55 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-02-02 17:51:55 (GMT) |
commit | 6f9b782763a6e1605f10e734efa396ec738a04e0 (patch) | |
tree | 6d0732223d3b2522a8f3947922fb882846ee46b8 /doc | |
parent | 303f11157504fc05934fb107a61f3c551f6e3684 (diff) | |
parent | a882b53474bbebcce65b5fcbd96dea64e652a44e (diff) | |
download | tk-6f9b782763a6e1605f10e734efa396ec738a04e0.zip tk-6f9b782763a6e1605f10e734efa396ec738a04e0.tar.gz tk-6f9b782763a6e1605f10e734efa396ec738a04e0.tar.bz2 |
TIP #533 (Extension of the menu post command) implementation was accepted by TCT vote. This allows fixing of bug [70e531918e]: geometry issues with menubuttons on macOS.
Diffstat (limited to 'doc')
-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 . |