beautypg.com

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

Page 180

background image

C H A P T E R 4

NewtApp Applications

4-42

Summary of the NewtApp Framework

newtROLabelNumInputLine

4

aDisplayLabelNumberInputLine

:= {// Labelled number display line

_proto: newtROLabelNumInputLine,

label: "",// Text for input line label

flavor: newtNumberFilter,//

path: 'pathExpr,// Data stored/retrieved from here

UpdateText: // Used with Undo to update text to new text

func(

newText

)..., //

}

newtLabelDateInputLine

4

editableLabelNumberInputLine

:= {// Labelled date input line

_proto: newtLabelDateInputLine,

label: "",// Text for input line label

labelCommands: ["", "",],// Picker options

curLabelCommand:

integer

,// Integer for current command

memory: nil,

// most recent picker choices

usePopup: true,// When true with labelCommands array

// picker is enabled

access: 'readWrite,// Could be 'readOnly or 'pickOnly

flavor: newtDateFilter,//

path: 'pathExpr,// Data stored/retrieved from here

ChangePopup: // change picker items before they display

func(

item, entry

)..., //

UpdateText: // Used with Undo to update text to new text

func(

newText

)..., //

}

newtROLabelDateInputLine

4

displayLabelDateLine

:= {

// Labelled number display line

_proto: newtROLabelDateInputLine,

label: "",// Text for input line label

flavor: newtDateFilter,// Don’t change

path: 'pathExpr,// Data stored/retrieved from here

UpdateText: // Used with Undo to update text to new text

func(

newText

)..., //

}

newtLabelSimpleDateInputLine

4

editableLabelSimpleDateLine

:= {// Labelled date display line

// accepts dates like 9/15 or 9/15/95