Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 1 - Newton Works / Newton Works Interface Reference
Newton Works Viewdef Slots and Methods /


GetScrollableRect

viewDef:GetScrollableRect()

Called to get a rectangle that describes the scrollable area of the view.

return value
Return a bounds frame of integers (top, left, bottom, right) describing the rectangle enclosing the visible region of the view. If nil is returned, Newton Works removes the scroll bars, and no other scroll methods are required.

DISCUSSION

Return nil from this method if you want to implement scrolling entirely on your own, or if scrolling is not needed.

Note that if the scroll bars are displayed and you want to remove them by returning nil from this method, you must also call *UpdateAllScrollers, as follows:

:UpdateAllScrollers(self, true, nil, true, nil);


Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help