Tk Source Code

View Ticket
Login
Ticket UUID: 2184632
Title: postcascade <index> does not work
Type: Bug Version: None
Submitter: arobert3434 Created on: 2008-10-21 14:54:14
Subsystem: 11. Aqua Menus Assigned To: das
Priority: 5 Medium Severity:
Status: Open Last Modified: 2008-10-21 14:54:14
Resolution: None Closed By:
    Closed on:
Description:
Explicitly calling postcascade to attempt to pop up a menu from the menubar does on work.  Tested on OS X 10.5, Tcl/Tk 8.4.7, 8.6a1:


menu .mbar -tearoff 0
. configure -menu .mbar
menu .mbar.apple -tearoff 0
.mbar add cascade -menu .mbar.apple
.mbar.apple add command -label "About Foo" -command { puts "About" }
menu .mbar.file -tearoff 0
.mbar.file add command -label "Dummy" -command { puts "Dummy" }
.mbar add cascade -label "File" -menu .mbar.file

after 5000 { .mbar postcascade 0 }


Nothing happens, and no error is generated.

(The use case for calling this in user code is to simulate platform compliance using bindings, for the following: Command-? activates Help menu, Control-F2 activates Apple menu.)