Figure 11.1 example: output for addcell – Teledyne LeCroy Protocol Analyzers File-Based Decoding User Manual User Manual
Page 57

File-based Decoding User Manual
Chapter 11: Primitives
LeCroy Corporation
51
Example
# Create a regular cell named Normal with a value "Cell" and
tool tip "Normal cell":
AddCell( "Normal", "Value1", "Normal cell" );
# Use the _MONOCOLOR value in the additional_info parameter to
create a cell with a color value of 0x881122 in both the name
and value fields:
AddCell( "MonoColor", "Value2", "MonoColor cell", 0x881122,
_MONOCOLOR );
# Use the _MONOFIELD value to create a cell with only a name
field:
AddCell( "MonoField", "Value3", "MonoField cell", [255, 200,
200], _MONOFIELD );
# Use the _ERROR value to create a cell with a red value field:
AddCell( "Error", "Value4", "Error cell", 0xcc1155, _ERROR );
# Use the _WARNING value to create a cell with a yellow value
field:
AddCell( "Warning", "Value5", "Warning cell", 0x00BB22,
_WARNING );
# Use the [_FIXEDWIDTH, w] value to create a cell with a fixed
width of 20 in conjuction with the error value to create a fixed
width cell with a red value field:
AddCell( "Fixed Width 20", "Value6", "Fixed Width and Error
cell", 0x001122, [_FIXEDWIDTH, 20], _ERROR );
The output of the example is:
Figure 11.1 Example: Output for AddCell