Warningfordlg(), Addwarningtooltip(), Warningfordlg() addwarningtooltip() – Teledyne LeCroy USB Script Decode Manual User Manual
Page 71

65
C
HAPTER
14
CATC Scripting Language for USB
USB Decoders
Example
if(in.Expanded) Warning("Bad value", "This is example
of Warning-cell.");
WarningForDlg()
WarningForDlg(text, tooltip)
Comments
Creates a warning for dialog view.
Example
WarningForDlg(Format("Not correct AttrM(0x%X)",
AttModifier),"Valid values for Attribute Modifier as
a pointer to a block of 8 GUIDs\n" + "are from 0 to
31." );
AddWarningTooltip()
AddWarningTooltip(error_tooltip)
Comments
Adds a special warning or error description part to a tooltip string.
Example
...
LID_number = 2345;
tooltip = "LID block number.";
error = null;
error_tooltip = "";
if( LID_number > UPPER_BOUND ) {
error = _ERROR;
error_tooltip = "LID number is out of range"; }
Parameter
Meaning
Default Value
Comments
text string
Warning text.
tooltip string
Tooltip text.
Parameter
Meaning
Default Value
Comments
error_tooltip