CAPL Script

TraceSetEventColors

Syntax

long traceSetEventColors(message msg, dword font, dword bkgnd)

long traceSetEventColors(errorFrame msg, dword font, dword bkgnd)

long traceSetEventColors(pg msg, dword font, dword bkgnd)

long traceSetEventColors(linFrame msg, dword font, dword bkgnd)

long traceSetEventColors(mostRawMessage msg, dword font, dword bkgnd)

long traceSetEventColors(mostMessage msg, dword font, dword bkgnd)

long traceSetEventColors(mostAmsMessage msg, dword font, dword bkgnd)

long traceSetEventColors(frFrame msg, dword font, dword bkgnd)

long traceSetEventColors(frError msg, dword font, dword bkgnd)

long traceSetEventColors(FrFrameError msg, dword font, dword bkgnd)

long traceSetEventColors(FrNullFrame msg, dword font, dword bkgnd)

long traceSetEventColors(FrPDU msg, dword font, dword bkgnd)

long traceSetEventColors(FrPOCState msg, dword font, dword bkgnd)

long traceSetEventColors(FrSlot msg, dword font, dword bkgnd)

long traceSetEventColors(FrStartCycle msg, dword font, dword bkgnd)

long traceSetEventColors(FrSymbol msg, dword font, dword bkgnd)

Function

Sets the text and background color for displayingmsgin the Trace Window. ThemakeRGBfunction can be used for the colors.

Parameters

msg Variable type: message, errorFrame, pg, linFrame, mostRawMessage, mostMessage, mostAmsMessage, frFrame, frError, frameError, nullFrame, pdu, pocState, slot, symbol, startCycle

font

Font color (RGB value)

bkgnd

Background color (RGB value)

Return Values

0: OK

-1: Invalid RGB value of a color.

on message *{traceSetEventColors(this, makeRGB(0x00, 0xFF, 0xFF), makeRGB(0x00, 0x00, 0x00));output(this);} on message *{message * msg;msg = this;traceSetEventColors(msg, makeRGB(0x00, 0xFF, 0xFF), makeRGB(0x00, 0x00, 0x00));output(msg);}

MOST Trace Highlighting