Apple Newton Utilities Guide de l'utilisateur Page 587

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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",
…},
}
Vue de la page 586
1 2 ... 582 583 584 585 586 587 588 589 590 591 592 ... 941 942

Commentaires sur ces manuels

Pas de commentaire