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 / Setting the Caret and Selection Range


TEIdle

When called repeatedly, the TEIdle procedure displays a blinking caret at the insertion point, if any exists, in the text of the specified edit record of an active window.

PROCEDURE TEIdle (hTE: TEHandle); 
hTE
A handle to the edit record.
DESCRIPTION
You need to call TEIdle only when the window containing the text is active; the caret is blinked only then. TextEdit observes a minimum blink interval, initially set to 32 ticks. No matter how often you call TEIdle, the time between blinks is never less than the minimum interval. (The user can adjust the minimum interval setting with the General Controls control panel.)

To maintain a constant frequency of blinking, you need to call TEIdle at least once each time through your main event loop. Call it more than once if your application does an unusually large amount of processing each time through the loop.

Call the Event Manager's GetCaretTime function to get the blink rate. (See the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials.)


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996