background image
C H A P T E R 1 5
Filing
Summary
15-21
Filing Protos
15
protoFilingButton
15
myFilingButtonView :=
// do not override ViewClickScript; use ButtonClickScript instead
{
_parent:{ // MyAppBaseView
_parent: {...}, // root view
_proto: {...}, // myAppBaseViewTemplate
...},
_proto: {// myFilingButtonTemplate
// set your own viewBounds in NTK view editor
viewBounds: {left: 10, top: 250,
right: 27, bottom: 263},
_proto: {// protoFilingButton
_proto: {...}, // protoPictureButton
// your ButtonClickScript must call inherited
ButtonClickScript:<function, 0 arg(s) ...>,
// your Update must call inherited
Update: <function, 0 arg(s) ...>,
// your viewSetupFormScript must call inherited
viewSetupFormScript:<function, 0 arg(s)...>
...},
...},
...}
protoNewFolderTab
15
myNewFolderTabView := {
{_parent: myAppBaseView, // see summary on page 15-20
_proto: { protoNewFolderTab,
// your folder tab's viewSetupFormScript must
// call this inherited method using conditional send
viewSetupFormScript: <function, 0 arg(s) ...>,
...},
// do not alter this slot; set only the text slot
title: {_parent: <2> // myNewFolderTabView,
_proto: {viewClass: clTextView, ...},
// string displayed at left of newFolderTab view
text: "My Text",
...},
}
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна