Important: The information in this document is obsolete and should not be used for new development.
TEUpdate
TheTEUpdate
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
CallTEUpdate
every time the Event Manager functionWaitNextEvent
reports an update event for a text editing window--after you call the Window Manager procedureBeginUpdate
, and before you call theEndUpdate
procedure. You also need to erase the update region with theEraseRect
procedure. If you don't the caret can sometimes remain visible when the window is deactivated.SEE ALSO
For a description of theWaitNextEvent
function, see the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials. For more information about theBeginUpdate
andEndUpdate
procedures, see the chapter "Window Manager" in Inside Macintosh: Macintosh Toolbox Essentials.