TEUpdate
TEUpdate
Update (draw) text in rectangle Rect *rUpdate.; in coordinates of current grafPort This function draws the text of the edit record within the bounds of the
rectangle rUpdate. It should be called each time that a GetNextEvent call indicates an update event for a text-editing window.
rUpdate is a pointer to a Rect structure, given in local coordinates relative to the current grafPort (e.g., from the enclosing window).
hTE is a handle obtained via TENew (old style TextEdit record) or TEStylNew (new style TextEdit record). It leads to a variable-length TERec structure and identifies the edit record with the text to display.
Notes: This normally is used in handling update events and should be EraseRect( myWindow -> portRect ); /* clears the caret */