Carbon


TEUpdate

Header: TextEdit.h Carbon status: Not Recommended

Draws the specified text within a given update rectangle.

void TEUpdate (
    const Rect *rUpdate, 
    TEHandle hTE
);
Parameter descriptions
rUpdate

The update rectangle, given in the coordinates of the current graphics port, where the specified text is to be drawn.

hTE

A handle to the edit structure containing the text to be drawn.

DISCUSSION

Call TEUpdate every time the Event Manager function WaitNextEvent reports an update event for a text editing window—after you call the Window Manager function BeginUpdate, and before you call the EndUpdate function. You also need to erase the update region with the EraseRect function. If you don’t, the caret can sometimes remain visible when the window is deactivated.

AVAILABILITY

Not recommended in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)