Menu

#1766 menubutton fg color changes unexpectedly under Aqua Tk

obsolete: 8.4.7
open
4
2006-06-18
2004-09-22
No

I noticed the following bizarre behavior under MacOS X
10.3.4 with Tcl/Tk Aqua 8.4.7: if I have a button using a
gray50 bitmap and I change its foreground color, the color
of the text of all menubuttons on the same toplevel also
changes to that same new color!

Here is a procedure to see this:

menubutton .mb -text sometext
pack .mb
button .b -bitmap gray50
pack .b
.b configure -fg blue

* Click on the title bar of the topevel window to bring it to
the front.
* Move the mouse over the menubutton (without clicking!)
* Observe that the color of the menubutton's text changes
to blue! Why???

I sure hope this is a bug and not a feature. I can't imagine
why this behavior should be normal, and I don't see this
strange behavior under unix (nor, I think, under some
earlier versions of aqua Tcl/Tk but I've not tried reverting to
find out for sure).

On the other hand, under aqua Tk I've not found any
*proper* way to change the color of the text or the
background for a menubutton, which has been a great
source of grief. Pity that this bug doesn't make a useful
workaround for that problem.

Discussion

  • Don Porter

    Don Porter - 2004-09-23
    • labels: --> 11. Aqua Menus
    • assigned_to: nobody --> das
     
  • Daniel A. Steffen

    • priority: 5 --> 4
     
MongoDB Logo MongoDB