Apple Newton Utilities Uživatelská příručka Strana 199

  • 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 198
CHAPTER 5
Stationery
Stationery Summary 5-17
newtRollShowStationeryButton 5
aRollShowButton := { // the Show button in paper roll apps
_proto: newtRollShowStationeryButton,
types: [typeSym,…],// can specify type slots of viewDefs
sorter: '|str<|,// sorted alphabetically by Sort function
shortCircuit: Boolean,// controls picker behavior
StatScript: // called when picker item chosen
func(stationeryItem)..., // define actions in this method
SetUpStatArray:// override to intercept picker items to
func()..., // be displayed
}
newtRollShowStationeryButton 5
anEntryShowButton := { // Show button in paperroll apps
_proto: newtEntryShowStationeryButton,
types: [typeSym,…],// can specify type slots of viewDefs
sorter: '|str<|,// sorted alphabetically by Sort function
shortCircuit: Boolean,// controls picker behavior
StatScript: // called when picker item chosen
func(stationeryItem)..., // define actions in this method
SetUpStatArray:// override to change entry displayed
func()..., // can display different view for each
}
Functions 5
RegDataDef(dataDefSym, newDefTemplate) // register dataDef
UnRegDataDef(dataDefSym) // unregister dataDef
RegisterViewDef(viewDef, dataDefSym)// register viewDef
UnRegisterViewDef(viewDefSym, dataDefSym)//unregister viewDef
GetDefs(form, symbols, types)// returns view or data defs array
GetDataDefs(dataDefSym)// returns dataDef
GetAppDataDefs(superSymbol)// returns an app’s dataDefs
GetEntryDataDef(soupEntry) // returns the entry’s dataDef
GetEntryDataView(soupEntry, viewDefSym)// returns the entry’s
// viewDef
GetViewDefs (dataDefSym) // returns viewDefs registered
// with the dataDef
GetDataView (dataDefSym, viewDefSym) // returns a specific
// viewDef of the dataDef
Zobrazit stránku 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 941 942

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

Žádné komentáře