previous chapter contents page top page next chapter

ZoomingButton

inherits from SpecialButton;
encodes empty field list;

Class Description

Class ZoomingButton is a variant of the special button. Zooming buttons have targets. When a zooming button is touched, a box zooms from the button to its target.

Programming information

Instantiate: sometimes
Subclass: often
Call its methods: rarely

You'll subclass class ZoomingButton when the basic special button behavior doesn't meet your needs, such as when you need the button's action to do more than just call a particular operation, or when your button must update itself. See the chapter on class SpecialButton for details.

Methods defined by class ZoomingButton

Class ZoomingButton defines the following methods:

Method Description
Action Overridden to zoom

Fields defined by class ZoomingButton

Class ZoomingButton 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 Unsigned Property settings
labelStyle TextStyle Text style of object's label
color Unsigned Color of object's content
altColor Unsigned Not used by button
shadow Shadow Shadow drawn with object
sound Sound Sound associated with object
Inherited from Stamp
image Image Image used to draw stamp
Inherited from HasBorder
border Border The button's border
Inherited from SpecialButton
selector UnsignedShort The type of special case this button is
operationNumber Unsigned
specialData Object

Your zooming buttons must store their targets in their specialData fields. ZoomingButton_Action calls Target on the button, but SpecialButton_Target is overridden to return the contents of the button's specialData field.