TEActivate
TEActivate make an edit record active
#include <TextEdit.h> TextEdit
void TEActivate(hTE );
TEHandle hTE; handle of an edit record
TEActivate activates an edit record by highlighting its selection range or
displaying the vertical-bar caret.
hTE is a handle obtained via TENew or TEStylNew. It leads to a
variable-length TERec structure and identifies the edit record to be
deactivated.
Returns: none

Notes: This function should be called every time the GetNextEvent
function indicates that the window containing the edit record has become
active (i.e., on activateEvt events when the modifiers bit 0 is set to 1).
Use TEDeactivate when the window becomes inactive.
Refer to the discussion of the EventRecord and GetNextEvent.