background image
C H A P T E R 2 1
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
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна