| Ticket UUID: | 1224330 | |||
| Title: | Bug in menu delete | |||
| Type: | Bug | Version: | obsolete: 8.4.13 | |
| Submitter: | fvogel | Created on: | 2005-06-20 18:35:34 | |
| Subsystem: | 13. Win Menus | Assigned To: | hobbs | |
| Priority: | 8 | Severity: | ||
| Status: | Closed | Last Modified: | 2014-02-19 21:42:10 | |
| Resolution: | Fixed | Closed By: | hobbs | |
| Closed on: | 2006-05-25 23:52:57 | |||
| Description: |
The following code shows a bug in the windows menu
implementation:
menu .menu
for {set i 0} {$i<20} {incr i} {
.menu add command -label "Entry $i" -command \
"tk_messageBox -message \"Entry $i!\""
}
.menu delete 10
pack [menubutton .m -menu .menu -text Menu]
Menu entries below the deleted item are not selectable.
If clicked, the last entry before the deleted one is
executed.
I submit this bug as a new one because I don't know
how to reopen bug 525111.
This happens on Win XP SP2 with the ActiveState
binary distribution of Tcl/Tk 8.4.10.
| |||
| User Comments: |
fvogelnew1 added on 2006-12-03 05:13:51:
Logged In: YES user_id=1245417 Originator: YES Fixed status confirmed. The ActiveState binary distribution 8.4.14 for Windows is OK for me. Thanks, Francois hobbs added on 2006-05-26 06:52:57: Logged In: YES user_id=72656 This turned out to be an optimizer bug in VC6. I have adjusted the code to correct this. It was actually in generic Tcl code, but only the Windows compiler was affected. Fixed in 8.4.14 and 8.5a4. hobbs added on 2006-05-26 01:52:18: Logged In: YES user_id=72656 I can hit the problem in 8.4 and 8.5, but only on optimized builds. Debug builds don't show the problem ... state init problem? Race condition? fvogelnew1 added on 2006-04-28 04:11:15: Logged In: YES user_id=1245417 Hmmm, something must have gone wrong. I remember having checked on the source code that this was fixed (see below), but now using the precompiled activestate binaries the same problem shows up again. Might have been broken again between our checks and the final 8.4.13 release. Reopening this bug. Francois fvogelnew1 added on 2006-03-31 13:19:32: Logged In: YES user_id=1245417 Yes, you're right Jeff. It's broken in 8.4.12 but works with the core-8.4.13 sources. I close this, thanks for having checked. Cheers, Francois hobbs added on 2006-03-31 08:02:18: Logged In: YES user_id=72656 This works in my sandbox for 8.4.13. fvogelnew1 added on 2006-03-18 20:06:24: Logged In: YES user_id=1245417 Still broken with 8.4.12. Works however with cvs HEAD from today. Could we backport the fix to the 8.4 branch? Francois fvogelnew1 added on 2005-06-21 03:01:27: Logged In: YES user_id=1245417 Note however that if the menu is torn off, behavior is apparently OK. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki