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 / Displaying and Scrolling Text


TEAutoView

The TEAutoView procedure enables and disables automatic scrolling of the text in the specified edit record.

PROCEDURE TEAutoView (fAuto: Boolean; hTE: TEHandle);
fAuto
A flag indicating whether to enable or disable automatic scrolling. A value of TRUE enables automatic scrolling. A value of FALSE disables automatic scrolling.
hTE
A handle to the edit record for which automatic scrolling is to be enabled or disabled.
DESCRIPTION
The TEAutoView procedure does not actually scroll the text automatically: TESelView does. However, when fAuto is set to FALSE, a call to TESelView has no effect.

If there is a scroll bar associated with the edit record, your application must manage scrolling of it. You can replace the default click loop routine, which scrolls the text only, with a customized version that also updates the scroll bar.

You can also enable or disable automatic scrolling for an edit record through the teFAutoScroll feature of the TEFeatureFlag function.

SEE ALSO
For more information, see "TEFeatureFlag" on page 2-102.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996