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 /


UpdateAllScrollers

viewDef:UpdateAllScrollers(view, totalHeightChanged, scrolledV, totalWidthChanged, scrolledH)

Updates the scroll bar controls.

view
The view (self).

totalHeightChanged
A Boolean value indicating whether or not the height of the document has changed.

scrolledV
A Boolean value indicating whether or not the vertical scroller thumb needs to be updated.

totalWidthChanged
A Boolean value indicating whether or not the width of the document has changed.

scrolledH
A Boolean value indicating whether or not the horizontal scroller thumb needs to be updated.

return value
Undefined; don't rely on it.

DISCUSSION

You call this Newton Works method to update the scroll bar controls to reflect the new scrolled position or size of the view. You should call this method when you open the view and anytime you make a change that affects the size of the view (for example, changing margins or displaying rulers or other control elements), the size of the document (for example, adding or removing information), or the scrolled position of the document.

*UpdateAllScrollers calls your methods GetScrollValues as needed to recalculate the internal scroller data structures.

Note that *UpdateAllScrollers needs to be called from your Scroll method if the scroll bar controls need visual updating.


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