Teledyne-lecroy USB Script Decode Manual Uživatelský manuál Strana 78

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 90
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 77
72
CHAPTER 14
CATC Scripting Language for USB USB Decoders
Comments
Extracts a bit (bit_needed)fromsource.
Example
GetBit(3, peek_value);
AddCaptionCell()
AddCaptionCell(caption, text, tooltip, addparam)
Comments
Used to draw a special caption cell. Note: all Add...Cell functions use colors as
defined in the global variable FieldColor.
Example
AddCaptionCell(VNDR_DATA_CAP, "VendorExample",
"Example of vendor-attribute decoder.\n\n" + "This
attribute is completely fictive and\n" + "was
contemplated for example ONLY.\n\n" + "We use
AddCaptionCell() for depiction of attribute
captions." + "\r" + "Use '\\r' - as delimiter to add
extended part of your\n" + "tooltip");
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.
Zobrazit stránku 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 89 90

Komentáře k této Příručce

Žádné komentáře