background image
C H A P T E R 5
Stationery
5-16
Stationery Summary
newtStationeryPopupButton
5
aStatPopup := { // used to construct New and Show buttons
_proto: newtStationeryPopupButton,
form:
symbol
,
// 'viewDef or 'dataDef
symbols: nil,
// gathers all or specify:[
uniqueSym
,
...
]
text:
string
,
// text displayed in picker
types: [
typeSym,...
],// 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
}
newtNewStationeryButton
5
aNewButton := { // the New button collects dataDefs
_proto: newtNewStationeryButton,
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
}
newtShowStationeryButton
5
aShowButton := { // the Show button collects viewDefs
_proto: newtShowStationeryButton,
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
}
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна