background image
C H A P T E R 6
Pickers, Pop-up Views, and Overviews
6-44
Summary
viewFormat:
formatFlags
,
def:
frame
,
// protoTableDef table
// definition frame
scrollAmount:
integer
,
// number of rows to scroll
currentSelection:
string
,
// text of selected item
selectedCells:
array
,
// selected cell indexes
declareSelf:
symbol
,
// 'tabbase; do not change
ViewSetupFormScript:
function
,
// set up table
SelectThisCell:
function
,
// called when cell is
selected
...
}
protoTableDef
6
aProtoTableDef := {
_proto: protoTableDef,
tabAcross:
integer
,
// number of columns - must be 1
tabDown:
integer
,
// number of rows in table
tabWidths:
integer
,
// width of table
tabHeight:
integer
,
// height of rows
tabProtos:
frame
,
// references to row templates
tabValues:
integer/array
,
// value/array of values for
// rows
tabValueSlot:
symbol
,
// slot to store tabValues in
tabUniqueSelection:
Boolean
, // true for single selection
indentX:
integer
,
// do not change: used internally
TabSetUp:
function
,
// called before each row set up
...
}
protoTableEntry
6
aProtoTableEntry := {
_proto:
protoTableEntry,
viewClass:
clTextView,
viewFlags:
flags
,
viewJustify:
justificationFlags
,
viewTransferMode:
modeOr,
text:
string
,
// text inside table
ViewClickScript:
function
,
// sets current selection
ViewHiliteScript:
function
,
// highlights selection
...
}
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна