Addsimpleplcell() – Teledyne LeCroy USB Script Decode Manual User Manual
Page 83

77
C
HAPTER
14
CATC Scripting Language for USB
USB Decoders
Comments
Creates a monocolored cell. It is intended to be used to start a new group of cells
but doesn’t create a table in dialog view. Note: all Add...Cell functions use
colors as defined in the global variable FieldColor.
Example
AddPLCellMonoNoDlg("LIDs : ", "Valid Ports : ", "");
AddSimplePLCell()
AddSimplePLCell(caption, text, tooltip, addparam)
Comments
A ‘simple’ payload cell does not respond to view settings. It is always hidden when
collapsed and always shown when expanded. Note: all Add...Cell functions use
colors as defined in the global variable FieldColor.
Example
AddSimplePLCell("Field 6", "Value : " +
Format("0x%01X", NextNBits_(8)), "Field 6\n\n" +
"Here we use AddSimplePLCell for showing field.\n" +
"The ...SimpleCell-functions don't care about view
settings for the field.\n" + "They DON'T show cell in
collapsed state but DO show in expanded state.");
Parameter
Meaning
Default Value
Comments
caption
Displays in the name field of the cell.
text
Displays in the value field of the cell.
tooltip
Displays in tooltip.
addparam
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:
_ERROR: creates a cell with a red value field to
indicate an error.
_WARNING: creates a cell with a yellow value
field to indicate a warning.
_MONOFIELD: cell consists of only a name
field.
_MONOCOLOR: creates a cell with the same
color in both fields.
_FIXEDWIDTH: creates a cell with a fixed,
specified width.