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


TEPinScroll

The TEPinScroll procedure scrolls the text within the view rectangle of the specified edit record by the designated number of pixels. Scrolling stops when the last line of text is scrolled into view.

PROCEDURE TEPinScroll (dh: Integer; 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 TEPinScroll procedure updates the text on the screen automatically to reflect the new scroll position, as does the TEScroll procedure. The destination rectangle is offset by the amount scrolled. When the edit record is longer than the text it contains, TEPinScroll displays up to the last line of text inclusive, and not beyond it.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996