User manual

44
CHAPTER 12
CATC Scripting Language for USB Decoder Primitives
Return value
None.
Comments
Begins a cell block and adds a block header cell. This is a special cell that can be
collapsed and expanded. The collapsed/expanded state of this cell affects cells in
the group according to their _COLLAPSED, _EXPANDED attributes. All calls to
AddCell after a call to BeginCellBlock() will put the new cells into this
group until a call to EndCellBlock is made.
Cell blocks can be nested.
Example
# Begin the 'red' group. For clarity these cells will
be red:
BeginCellBlock( "Red Group", null, null, 0x0000ff,
_MONOFIELD );
# This cell will be displayed when the red group is in
the expanded state:
AddCell( "Red is", "Expanded", null, 0x0000ff,
_EXPANDED );
value string Displays in the value field of the cell.
description string or null Displays in tool tip.
color integer or list If not speci-
fied, a default
color is used
Color can be specified as either a packed color
value in an integer, or as an array of RGB values
ranging from 0-255. Displays in the name field
of the cell.
additional_info any Used to create special cells or to modify cell
attributes. The values are predefined constants,
and zero or more of them may be used at one
time. Possible values are:
[_BLOCKNAME, x]
_COLLAPSED
_ERROR
_EXPANDED
[_FIXEDWIDTH, w]
_HIDDEN
_MONOCOLOR
_MONOFIELD
_SHOWN (default)
_WARNING
Parameter Meaning Default Value Comments