beautypg.com

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

Page 242

background image

C H A P T E R 6

Pickers, Pop-up Views, and Overviews

6-42

Summary

iconSetup:

icon frame,

labelCommands:

array

,

// items in list

iconBounds:

boundsFrame

,

// bounds of largest icon

iconIndent:

integer

,

// indent of text from icon

checkCurrentItem:

Boolean

,

// true to check selected item

indent:

integer

,

// indent of picker from label

textIndent:

integer

,

// indent of text

LabelActionScript:

function

,

// returns selected item

TextSetup:

function

,

// gets initial item

TextChanged:

function

,

// called upon item value change

UpdateText:

function

,

// call to change selected item

PickerSetup:

function

,

// called when user taps label

Popit:

function

,

// call to programmatically

// pop up picker

...

}

protoPicker

6

aProtoPicker := {
_proto:

protoPicker,

bounds:

boundsFrame

,

viewBounds:

boundsFrame

, // ignored

viewFlags:

constant

,

viewFormat:

formatFlags

,

viewJustify:

justificationFlags

,

viewFont:

fontSpec

,

viewEffect:

effectFlag

,

pickItems:

array

, // items in list

pickTextItemHeight:

integer

, // height reserved for items

pickLeftMargin:

integer

, // margin from left of view

pickRightMargin:

integer

, // margin from right of view

pickTopMargin:

integer

, // margin above each item in

// list

pickAutoClose:

Boolean

, // true to close list after pick

pickItemsMarkable:

Boolean

, // true to reserve space for

// check mark before item

pickMarkWidth:

integer

, // space to reserve for marks

callbackContext:

view

,

// view with pick scripts

PickActionScript:

function

, // returns selected item

PickCancelledScript:

function

,

// user cancelled

SetItemMark:

function

, // sets char for check marks

GetItemMark:

function

, // gets char for check marks

...
}