UpdateAllScrollers
viewDef:UpdateAllScrollers(view, totalHeightChanged, scrolledV, totalWidthChanged, scrolledH)
Updates the scroll bar controls.
DISCUSSION
- 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.
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 methodsGetScrollValues
as needed to recalculate the internal scroller data structures.Note that *
UpdateAllScrollers
needs to be called from yourScroll
method if the scroll bar controls need visual updating.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help