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:

Forcing TextEdit To Draw Over a Background Image

Q How do I get TextEdit to draw over a background image? Whenever TextEdit redraws the text, it erases the background image.

A To get TextEdit not to erase the background when it redraws, you need to replace two QuickDraw bottleneck routines -- StdRect and StdRgn -- with your own custom versions. Your routines will check to see if the operation to be performed is erase, and if so, your routine draws the image you want to show through the TextEdit area, instead of erasing the area to the current background color. A code snippet called "TE Over Background" shows you how to accomplish this. You can find it on the Developer Tool Chest CD: Dev.CD Feb 96 TC:Sample Code:Snippets:QuickDraw:TE Over Background, or at http://dev.info.apple.com/source/code/Snippets/QuickDraw/TE_Over_Background/TESample.c.html.

[Feb 15 1996]


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.