- labels: --> 11. Aqua Menus
- assigned_to: nobody --> das
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.