background image
C H A P T E R 4
NewtApp Applications
Summary of the NewtApp Framework
4-39
newtROEditView
4
readOnlyEditView
:= { // A text display view, which
// may have scrollers
_proto: newtROEditView,
optionFlags: kNoOptions,
// disables scroller
//kHasScrollersOption enables scroller
doCaret: true, //caret is autoset
viewLineSpacing: 28,
path: 'pathExpr,// Data stored/retrieved from here
ScrolltoWord: // Finds
words
, scrolls to it, and high-
func(
words, hilite
)..., // lights it (if
hilite
is true)
}
newteditView
4
editView
:= {
// A text edit view, which
// may have scrollers
_proto: newtEditView,
optionFlags: kNoOptions,
// disables scroller
//kHasScrollersOption enables scroller
doCaret: true, //caret is autoset
viewLineSpacing: 28,
path: 'pathExpr,// Data stored/retrieved from here
ScrolltoWord: // Finds
words
, scrolls to it, and high-
func(
words, hilite
)..., // lights it (if
hilite
is true)
}
newtCheckBox
4
checkBoxView
:= {
// A checkbox
_proto: newtCheckBox
assert: true,// Data stored/retrieved from here
negate: nil,// Data stored/retrieved from here
path: 'pathExpr,// Data stored/retrieved from here
ViewSetupForm: // Is target.(path)= assert?
func()..., //
ValueChanged: // Changes target.(path) value to its
func()..., // opposite either true or false
}
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна