beautypg.com

Number pickers 6, Picture picker 6 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 253

background image

C H A P T E R 6

Pickers, Pop-up Views, and Overviews

Summary

6-53

protoTimeIntervalPopup

6

protoTimeIntervalPopup := {

_proto:

protoTimeIntervalPopup,

New:

function

,

// creates pop-up view

PickActionScript:

function

,

// returns selected item

PickCancelledScript:

function

,

// user cancelled picker

...

}

Number Pickers

6

protoNumberPicker

6

aProtoNumberPicker := {

_proto:

protoNumberPicker,

minValue:

integer

,

// minimum value in list

maxValue:

integer

,

// maximum value in list

value:

integer

,

// currently selected value

showLeadingZeros:

Boolean

,

// true to show leading zeros

prepareForClick:

function,

// called after click is

// processed

ClickDone:

function,

// called after click is

// processed

...

}

Picture Picker

6

protoPictIndexer

6

aProtoPictIndexer := {

_proto:

protoPictIndexer,

viewBounds :

boundsFrame

,

viewJustify:

justificationFlags

,

viewFormat :

formatFlags

,

icon:

bitmap

,

// bitmap with objects

// arranged vertically

iconBBox:

boundsFrame

, // bitmap bounds within view

numIndices:

integer

,

// # of objects in bitmap

curIndex:

integer

,

// index of current item

IndexClickScript:

function

,

// user taps bitmap

...

}