
CHAPTER 4
NewtApp Applications
4-40 Summary of the NewtApp Framework
newtStationeryView 4
stationeryView:= { // Used as bounding box and container
// view for viewDef
_proto: newtStationeryView
}
newtEntryLockedIcon 4
entryLockedIcon:= { //Shows lock if slot is on locked media
_proto: newtEntryLockedIcon
icon: nil,// Can also be: lockedIcon
Retarget : // displays either lock or unlocked icon
func()...,
SetIcon: // Changes target.(path) value to its
func()..., // opposite either true or false
}
newtProtoLine 4
basicInputLine:= { // Base for input line protos
_proto: newtProtoLine,
label: "",// Text for input line label
labelCommands: ["", "",],// Picker options
curLabelCommand: 1,// Integer for current command
usePopup: true,// When true with labelCommands array
// picker is enabled
path: 'pathExpr,// Data stored/retrieved from here
access: 'readWrite,// Could be 'readOnly or 'pickOnly
flavor: newtFilter,// Don’t change
memory: nil, // most recent picker choices
ChangePopup: // change picker items before they display
func(item, entry)..., //
UpdateText: // Used with Undo to update text to new text
func(newText)..., //
}
newtLabelInputLine 4
aLabelInputLine:= { // Labelled input line for text
_proto: newtLabelInputLine,
label: "",// Text for input line label
labelCommands: ["", "",],// Picker options
curLabelCommand: integer,// Integer for current command
Komentarze do niniejszej Instrukcji