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


TEScroll

The TEScroll procedure scrolls the text within the view rectangle of the specified edit record by the designated number of pixels.

PROCEDURE TEScroll (dh,dv: Integer; hTE: TEHandle);
dh
The distance in pixels that the text is to be scrolled horizontally. A positive value moves the text to the right; a negative value moves the text to
the left.
dv
The distance in pixels that the text is to be scrolled vertically. A positive value moves the text down; a negative value moves the text up.
hTE
A handle to the edit record whose text is to be scrolled.
DESCRIPTION
The TEScroll procedure updates the text on the screen automatically to reflect the new scroll position. The destination rectangle is offset by the amount scrolled. The TEScroll and TEPinScroll procedures behave the same, except that TEPinScroll stops scrolling when the last line of text is scrolled into view.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996