previous chapter contents page top page next chapter


HasScrolling

February 24, 1996

Mixes in with Viewable

Class Description

The HasScrolling mixin provides you ways of creating subclasses of objects that can scroll. Any object that can scroll will inherit from the HasScrolling mixin.

Programming information

Instantiate: never
Subclass: sometimes
Call its methods: often

Since HasScrolling is a mixin, you'll never work directly with HasScrolling objects. Instead, you'll work with objects of classes that inherit from HasScrolling, such as NameCard.

Methods defined by class HasScrolling

Class HasScrolling defines the following methods:

Method Description
PageDown Scrolls down by 3/4 of object bounds; override to change scroll amount
PageLeft Scrolls left by 3/4 of object bounds; override to change scroll amount
PageRight Scrolls right by 3/4 of object bounds; override to change scroll amount
PageUp Scrolls up by 3/4 of object bounds; override to change scroll amount
ScrollToBeginning Sets scroll position to beginning
ScrollToEnd Sets scroll position to end
ScrollToTop Sets scroll position to top edge
ScrollToBottom Sets scroll position to bottom edge
ScrollToLeft Sets scroll position to left edge
ScrollToRight Sets scroll position to right edge

Fields defined by class HasScrolling