Important: The information in this document is obsolete and should not be used for new development.
TEIdle
When called repeatedly, theTEIdle
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 callTEIdle
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 callTEIdle
, 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.)