Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) Uživatelský manuál Strana 786

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 942
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 785
CHAPTER 21
Routing Interface
21-38 Summary of the Routing Interface
RouteScripts Array Element 21
RouteScriptsArrayElement := {
title: string, // string name of picker item
icon: bitmap object, // icon for picker item
appSymbol: symbol, // used if defined in a view def
RouteScript: symbol or function,// function called if this
// action is chosen
GetTitle: function, // supplied instead of title slot
...
}
Protos 21
protoActionButton 21
aProtoActionButton := {
_proto: protoActionButton,
viewBounds : boundsFrame,
...
}
protoPrinterChooserButton 21
aPrinterChooserButton := {
_proto: protoPrinterChooserButton,
viewBounds : boundsFrame,
}
protoRoutingFormat, protoPrintFormat, and protoFrameFormat 21
aFormat := {
_proto: protoRoutingFormat, // or one of the other protos
type: 'routeFormat, // some ROMs also use 'printFormat
title: string, // name of format
symbol: symbol, // unique id - include signature
dataTypes: ['frame, 'text],// supports frame & text data
version: integer, // version number
auxForm: viewTemplate, // for auxiliary view
storeAlias: Boolean, // store alias?
showMessage: Boolean, // warn user when aliasing?
sizeLimit: integer, // maximum size without aliasing
storeCursors: Boolean, // store cursor to multiple items?
SetupItem: function, // puts target into item frame
Zobrazit stránku 785
1 2 ... 781 782 783 784 785 786 787 788 789 790 791 ... 941 942

Komentáře k této Příručce

Žádné komentáře