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:

Setting the Background Color of a Control


Q: I'm having trouble setting the background color of a control. It looks to me like the control color table contains an entry for background color, but the standard controls seem to be ignoring this entry. What should I do?

A: Unfortunately, since Mac OS 8 and the Appearance SDK were introduced, there are many answers to this question. Without the Appearance extension (whose functionality is built into Mac OS 8.5 and later), controls get their background color from the content entry of the window color table. Otherwise, controls get their background color in a considerably more complicated way, which is best expressed in sample code. We've updated the "ControlBackground" sample accordingly, and it should be appearing on the appropriate Developer CDs and FTP sites soon.

[May 03 1999]


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.