traceSetEventColors
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long traceSetEventColors(message msg, dword font, dword bkgnd); // form 1long traceSetEventColors(errorFrame msg, dword font, dword bkgnd) // form 2long traceSetEventColors(pg msg, dword font, dword bkgnd) // form 3long traceSetEventColors(linFrame msg, dword font, dword bkgnd) // form 4long traceSetEventColors(mostRawMessage msg, dword font, dword bkgnd) // form 5long traceSetEventColors(mostMessage msg, dword font, dword bkgnd) // form 6long traceSetEventColors(mostAmsMessage msg, dword font, dword bkgnd) // form 7long traceSetEventColors(frFrame msg, dword font, dword bkgnd) // form 8long traceSetEventColors(frError msg, dword font, dword bkgnd) // form 9long traceSetEventColors(FrFrameError msg, dword font, dword bkgnd) // form 10long traceSetEventColors(FrNullFrame msg, dword font, dword bkgnd) // form 11long traceSetEventColors(FrPDU msg, dword font, dword bkgnd) // form 12long traceSetEventColors(FrPOCState msg, dword font, dword bkgnd) // form 13long traceSetEventColors(FrSlot msg, dword font, dword bkgnd) // form 14long traceSetEventColors(FrStartCycle msg, dword font, dword bkgnd) // form 15long traceSetEventColors(FrSymbol msg, dword font, dword bkgnd) // form 16long traceSetEventColors(ethernetPacket msg, dword font, dword bkgnd) // form 17long traceSetEventColors(ethernetErrorPacket msg, dword font, dword bkgnd) // form 18
Description
Sets the text and background color for displaying msg in the Trace Window. The makeRGB function can be used for the colors. Note- This function can only be used in Measurement Setup and is only applied to the Trace Window.
- The setting of colors with this function has a higher priority than the color settings for events in the Trace Window.
- Up to and including CANoe DE product version 12.0 SP2, the function makeRGB returned the blue value in the second byte and the red value in the fourth byte. Functions that received this value as a parameter interpreted this exchange so that the color was displayed correctly.
- From CANoe DE product 12.0 SP3, the function makeRGB returns the color values in the correct order. Functions that have received this value as a parameter have also been adjusted to display the correct color again.
- Existing programs only need to be adapted if you have not used the function makeRGB but you have passed the color hard coded.
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.