About Scrolling with protoTXView
Your word processing views automatically scroll when the user is entering text with the keyboard or pen. *protoTXView
also provides a number of scrolling methods that you can use if you have attached scrollers (vertical or horizontal) to the view that encloses your *protoTXView
.Table 3-4 summarizes the *
protoTXView
scrolling methods, which are described in more detail in "Scrolling Methods".Table 3-4 Scrolling methods of
protoTXView
Method Description Scroll Scrolls the contents of the word-processing view horizontally and/or vertically. GetScrollValues Returns the current scroll values, which you can use to adjust the thumbbars of attached scrollers GetTotalHeight Returns the current total text height, which you can use to set the maximum value of a vertical scroller. GetTotalWidth Returns the total text (or page) width, which you can use to set the maximum value of a horizontal scroller. GetScrollableRect Returns a frame describing the coordinates of the text display rectangle. ViewUpdateScrollersScript Called by * protoTXView
when the text is scrolled or when the text height changes. Used to notify you that any attached scrollers might need updating.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help