Preparefieldfordlgext(), Addcaptiontodlg(), Preparefieldfordlgext() addcaptiontodlg() – Teledyne LeCroy USB Script Decode Manual User Manual
Page 74

68
C
HAPTER
14
CATC Scripting Language for USB
USB Decoders
Comments
ZeroField
means that the field to be added to out.FieldsList is not a data
field. Rather, it is an additional field such as a caption or a separator.
Example
PrepareZeroFieldForDlg(caption , text, tooltip);
PrepareFieldForDlgExt()
PrepareFieldForDlgExt(field_name, len, offset,
str_value, tooltip, addparam)
Comments
Writes passed data to out.FieldList, using passed values of field offset and
field length.
Example
PrepareFieldForDlgExt("FIELD_INIT", 0,
Global_BitField_offset);
AddCaptionToDlg()
AddCaptionToDlg(caption, text, tooltip, addparam)
Parameter
Meaning
Default Value
Comments
field_name
len
offset
str_value
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.
Parameter
Meaning
Default Value
Comments
caption
text
tooltip