From: SourceForge.net <no...@so...> - 2011-01-07 00:39:41
|
Bugs item #3000213, was opened at 2010-05-11 16:41 Message generated for change (Comment added) made by tom_goddard You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3000213&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 11. Aqua Menus Group: development: 8.6b1.1 Status: Open Resolution: Wont Fix Priority: 5 Private: No Submitted By: Tom Goddard (tom_goddard) Assigned to: Daniel A. Steffen (das) Summary: Inactive menu entries not grayed out, Mac Cocoa Initial Comment: Inactive menu entries are not grayed out on Mac Cocoa using Tk 8.6 CVS source code from May 10, 2010 if tk_setPalette is called. If tk_setPalette is not called then the inactive menu entries are correctly shown as gray. Here is a Wish script demonstrating the problem: menu .m . config -menu .m menu .m.f .m add cascade -label File -menu .m.f .m.f add command -label Open .m.f add command -label Save -state disabled tk_setPalette tan The disabled menu entry "Save" will not appear gray. Removing the last line of the script will make the disabled entry gray. This problem was observed when using the Tix meta-widget package which does a tk_setPalette to match the Tk color scheme to the color scheme in use by the operating system. The problem appears to be in tkMacOSXMenu.c in TkpConfigureMenuEntry() where it sets the font attributes foreground color if the foreground color is not the default value. Commenting out that color setting code fixed the problem but probably also disables the use of colored fonts in menus. ---------------------------------------------------------------------- >Comment By: Tom Goddard (tom_goddard) Date: 2011-01-06 16:39 Message: > The current implementation is correct for the platform. Native Mac applications have grayed out menu entries when the operations are unavailable. I don't understand how not graying out an inactive menu entry can be "correct for the platform". ---------------------------------------------------------------------- Comment By: Kevin Walzer (wordtech) Date: 2011-01-05 20:51 Message: The current implementation is correct for the platform. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3000213&group_id=12997 |