Configuration of Some System Protos

protoPictureButton

A protoPictureButton contains the following slots and values:

viewClass
clPictureView. The clPictureView looks for an icon slot containing a picture or bitmap. If no slot is found, no picture is drawn. Templates that proto from protoPictureButton should define an icon slot.

viewBounds
nil

viewFlags
vVisible
vReadOnly
vClickable

viewFormat
fill: white
frame: black
pen: 2
roundness: 4

viewJustify
horizontal: parentRelativeLeft and siblingNone
vertical: parentRelativeTop and siblingNone
text/graphics horizontal: center
text/graphics vertical: center

buttonClickScript
By default, does nothing; override to handle taps.

viewClickScript
Calls buttonClickScript. Do not override this.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996