ENTRY OnNewDiaTrendTimeInt(IN INT _refId, IN TIME _bt, IN TIME _et, IN INT _case, IN INT _subCase) ; script actions END OnNewDiaTrendTimeInt |
ENTRY XXX_OnNewDiaTrendTimeInt(IN TIME _bt, IN TIME _et, IN INT _case, IN INT _subCase) ; script actions END XXX_OnNewDiaTrendTimeInt |
| _refId | Parameter of INT type (required for global handler). |
| XXX | Name of Reference variable connected to graphic object (without the character "_"). |
| _bt, _ec | Displayed time interval (begin time and end time). |
| _case | Input parameter of INT type (see the table below). |
| _subCase | Input parameter of INT type - specifies the use of the parameter _case (see the table below). |
| value of parameter _case | Event type |
| 0 | First opening of the graph - immediately after opening the graph, or after calling the function %HI_SetConnectedObj. |
| 1 | When the user defines a time interval on time axis. If:
|
| 2 | Use of a zoom. If:
|
| 3 | Time interval change caused by a data shift in live graph. If:
|
!!! Calling the function %HI_SetDiagTimes doesn't activate the picture event OnNewDiaTrendTimeInt !!!
ENTRY graf_OnNewDiagTrendTimeInt(IN TIME _bt, IN TIME _et, IN INT _case, IN INT _subCase) IF _case = 0 THEN ; open displayer of Graph type ELSIF _case=1 THEN ; change of time interval |
IF _subCase = 0 THEN ; return to initial interval |
ELSIF _subCase = 1 THEN ; definition of a new time interval |
ENDIF ELSIF _case = 2 THEN ; use of zoom |
IF _subCase = 0 THEN ; destroying zoom
ELSIF _subCase = 0 THEN ; use of zoom
ENDIF
ENDIF
END graf_OnNewDiagTrendTimeInt |