Sujet : Re: ISO a way to select programmatically an entry from a popup
De : gregor.ebbing (at) *nospam* gmx.de (greg)
Groupes : comp.lang.tclDate : 14. Sep 2024, 12:38:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc3srk$1eqlo$2@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
Am 14.09.24 um 07:44 schrieb greg:
Am 13.09.24 um 01:31 schrieb Helmut Giese:
Oh, this is on Windows 64 bit under Tcl 8.6.10
Hello
with event, invoke and unpost
https://www.tcl.tk/man/tcl8.6/TkCmd/menu.htm#M41
event generate $c <$event> -button 3 -x 100 -y 100 -warp 1
#num 1 or 2, 0 is the label
.popup invoke $num
.popup unpost
from manual
pathName unpost
Unmap the window so that it is no longer displayed. If a lower-level cascaded menu is posted, unpost that menu. Returns an empty string. This subcommand does not work on Windows and the Macintosh, as those platforms have their own way of unposting menus.
My suggestion with unpost doesn't help with Windows.