Apple Newton Utilities Guía de usuario Pagina 587

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 942
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 586
CHAPTER 15
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",
…},
}
Vista de pagina 586
1 2 ... 582 583 584 585 586 587 588 589 590 591 592 ... 941 942

Comentarios a estos manuales

Sin comentarios