beautypg.com

Example: output for addcell – Teledyne LeCroy LeCroy Analyzers File Based Decoding Manual User Manual

Page 58

background image

Chapter 11: Primitives

File-based Decoding User Manual

52

LeCroy Corporation

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 1: Example: Output for AddCell