ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Menu Definition Drawing Dimmed Items


Q: What's the correct method for a custom menu definition function ('MDEF') to dim menu items? What's the preferred method for determining whether to draw in a gray color, or paint the items with a gray pattern?

A: When Appearance Manager 1.0.1 or later is present, you should use the theme brush constants (such as kThemeTextColorMenuItemDisabled).

When Appearance Manager 1.0.1 or later is NOT present, the proper method for dimming text in menu items is to use the grayishTextOr transfer mode. This mode takes into account both color and black-and-white screens. A simple method for dimming non-text items is to set the OpColor to gray, and then draw the nontext item in Blend mode.

Further Reference:

Inside Macintosh: Menu Manager
Inside Macintosh: Appearance Manager
Inside Macintosh: QuickDraw Text
Inside Macintosh: QuickDraw
Q&A QD59: grayishTextOr and Mac OS 8.5

[Dec 22 1998]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.