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:

White Backgrounds for Dialog editText Items

Q I would like to have a colored background for my dialog box but I would like the TextEdit fields in my dialog box to be white. Is this possible to do? Is there some sample code available?

A Generally speaking, this coloring is achieved via resources, not code. In addition to the 'dctb' resource, you need to create an 'ictb' resource. To download a sample of an application using this kind of resource click here.

The 'ictb' resource is documented on page 6-76 and starting again on page 6-158 of
Inside Macintosh: Macintosh Toolbox Essentials. The best way I know of to create and edit 'ictb' resources is with Resorcerer, but you can also create them with a '.r' file compiled by either MPW's Rez or the Metrowerks CodeWarrior equivalent.

Here are some references to web sites for the aforementioned tools:

[Oct 13 1997]


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.