Return value none, Cell blocks can be nested – Teledyne LeCroy CATC Scripting Language Reference Manual User Manual

Page 47

Advertising
background image

C

HAPTER

12

Decoder Primitives

CATC Scripting Language

43



Parameter

Meaning

Default Value

Comments

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

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 );

Advertising