previous chapter contents page top page next chapter


StampListBox

February 29, 1996

inherits from ScrollBox;

Class Description

Magic Cap defines class StampListBox as a subclass of ScrollBox designed to display lists of stamps. You can see an example of a stamp list box by tapping the stamps button in the file cabinet.

Remember that if the documentation and the software (especially the definition files) disagree, always trust the software.

Programming information

Instantiate: rarely
Subclass: rarely
Call its methods: never

You might create an object of class StampListBox if you wanted to have a scrolling box that contains a list of stamps.

Methods defined by class StampListBox

Class StampListBox defines the following methods:

Method Description
ChangedContents Overridden to reject new objects if not stamp, animation, or button.
MovedContents Overridden to avoid gridding feature of ScrollBox.

Fields defined by class StampListBox

Class StampListBox defines the following fields::

Field Type Description
Inherited from SingleLinkable
next Object Next item in view list
Inherited from Linkable
previous Object Previous item in view list
Inherited from Viewable
superview Viewable Container for this object
subview Viewable Object contained by this object
relativeOrigin Dot Origin relative to superview
contentSize Dot Size of content rectangle
viewFlags Flags Property settings
labelStyle TextStyle Text style of object's label
color Color Color of object's content
shadow Shadow Shadow drawn with object
sound Sound Sound associated with object
Inherited from HasBorder
border Border Framed border drawn around object
Inherited from ScrollBox
maximumSubviewBottom Micron Used by Magic Cap
gridSize Dot Horizontal and vertical grid spacing
gridOffset Dot Offset of first grid position
topArrow Viewable Scroll-up arrow
bottomArrow Viewable Scroll-down arrow
Defined by StampListBox
list ObjectList List of contents of box

Method Descriptions

ChangedContents

overrides ChangedContents

Call: rarely
Override: sometimes

Class StampListBox overrides ChangedContents to reject any new object that is not a stamp, animation, or button. Otherwise, the new object is added to the list and given a default name if it is unnamed.

MovedContents

overrides MovedContents

Call: rarely
Override: sometimes