Tk Source Code

View Ticket
Login
Ticket UUID: 3170714
Title: Menubutton and -direction flush does not work properly with
Type: Bug Version: obsolete: 8.6b1
Submitter: zoro2 Created on: 2011-02-02 16:40:59
Subsystem: 11. Aqua Menus Assigned To: wordtech
Priority: 5 Medium Severity:
Status: Open Last Modified: 2011-02-23 21:34:09
Resolution: Works For Me Closed By:
    Closed on:
Description:
When running attached code item selection works fine for first time, subsequently it seems to be hanging in OSX system call - probably due to Tk not passing mouse movement events.

Clicking on menubutton multiple times causes the program to occasionally hang - doe snot change selected item and releasing mouse button does not cause item to be selected.

Changing -direction or disabling -indicatoron still works - only this combination fails. When enabling Carbon events tracing, first click causes both button up/down events and move events to be received. Subsequent clicks only cause information on mouse up/down to be printed - and this might be the root of the problem.

Sample Tcl code works fine with Tk up to 8.5.6 - 8.5.7 is the first release where this code does not work. Since CVS is down (at least as of now) I have not been able to determine more exact date when it broke.

It can also be reproduced by doing [$menu post] on top of menubutton manually.
User Comments: zoro2 added on 2011-02-23 21:34:09:
I have retested this on CVS HEAD I retrieved earlier today. Verified on OSX 10.6.2 and 10.6.6 - the issue keeps happening.

Are you sure you tested with --enable-aqua=carbon? I made this mistake and for a while I thought it actually works.

wordtech added on 2011-02-07 22:07:23:
I'm not able to reproduce this issue with a build of CVS HEAD from a few weeks ago (before the SF attack). The indicator appears in the menu correctly, and items update correctly with no hang. There was an issue with the menu indicator not being displayed correctly but that has been fixed in HEAD.

zoro2 added on 2011-02-02 23:41:00:

File Added - 400546: sample.tcl

Attachments: