beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 243

background image

C H A P T E R 6

Pickers, Pop-up Views, and Overviews

Summary

6-43

protoGeneralPopup

6

aProtoGeneralPopup := {

_proto:

protoGeneralPopup,

viewBounds:

boundsFrame

,

viewFlags:

constant

,

cancelled:

Boolean

,

// true if user cancelled

// pop-up view

context:

view

,

// view with pick scripts

New:

// open pop-up view

Affirmative:

function

,

// user taps pop-up view

PickCancelledScript:

function

,

// called in pop-up view

// cancelled

...

}

protoTextList

6

aProtoTextList := {

_proto:

protoTextList,

viewBounds:

boundsFrame

,

viewFont:

fontSpec

,

viewFormat:

formatFlags

,

viewLines:

integer

,

// number of lines to show

selection:

integer

,

// index of selected item

selectedItems:

arrary

,

// items in list

listItems:

array

,

// strings or shapes in list

lineHeight:

array

,

// height of lines in list

isShapeList:

Boolean

,

// true if picts instead of text

useMultipleSelections:

Boolean

,

// true for multiple select

useScroller:

Boolean

,

// true to include scrollers

scrollAmounts:

array

,

// units to scroll

DoScrollScript:

function

,

// scrolls list by offset

ViewSetupFormScript:

function

,

// set up list

ButtonClickScript:

function

,

// returns selected item

...

}

protoTable

6

aProtoTable := {

_proto:

protoTable,

viewBounds:

boundsFrame

,