The EVENT_VIEWER object corresponds to the Event Viewer system object.

The EVENT_VIEWER object sends events given in the table.  Procedure is started when the corresponding event appears.

Format of event procedure for the Event Viewer object:

OnEvent("EVENT_VIEWER","_id_","_event_")

Description of events of the EVENT_VIEWER object.

Events

Description

SHOW_ON_MAPThe operator runs the command "Display on the map"
SHOW_VIDEOThe operator runs the command "Display video"
SHOW_REPORThe operator runs the command "Show report"

Format of events procedure for the Event Viewer:

DoReact("EVENT_VIEWER","_id_","_команда_" [,"_параметры_"]);

List of commands and parameters for the Event Viewer object is presented in the following table:

Commandcommand description

Parameters

Description of parameters

UPDATE_VIEW – set general background and/or text color in the Event Viewer interface window

bk_color<>

General background color in x16 format

defclr<>

General text color in x16 format

Example. Set general background color to black and general text color to white for Event Viewer 1 on Macro 1.

OnEvent ("MACRO","1","RUN")
{
    DoReactStr("EVENT_VIEWER","1","UPDATE_VIEW","bk_color<#000000>, defclr<#FFFFFF>");
}