Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 2 - TextEdit / TextEdit Reference
Routines / Displaying and Scrolling Text


TEUpdate

The TEUpdate procedure draws the specified text within a given update rectangle.

PROCEDURE TEUpdate (rUpdate: Rect; hTE: TEHandle);
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 record containing the text to be drawn.
DESCRIPTION
Call TEUpdate every time the Event Manager function WaitNextEvent reports an update event for a text editing window--after you call the Window Manager procedure BeginUpdate, and before you call the EndUpdate procedure. You also need to erase the update region with the EraseRect procedure. If you don't the caret can sometimes remain visible when the window is deactivated.

SEE ALSO
For a description of the WaitNextEvent function, see the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials. For more information about the BeginUpdate and EndUpdate procedures, see the chapter "Window Manager" in Inside Macintosh: Macintosh Toolbox Essentials.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996