Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnNewDiaTrendTimeInt picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnNewDiaTrendTimeInt(IN INT _refId, IN TIME _bt, IN TIME _et, IN INT _case, IN INT _subCase) ; script actions END OnNewDiaTrendTimeInt |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnNewDiaTrendTimeInt(IN TIME _bt, IN TIME _et, IN INT _case, IN INT _subCase) ; script actions END XXX_OnNewDiaTrendTimeInt |
Parameters
_refId | Parameter of the INT type (required for global handler). |
XXX | Name of the Reference variable connected to graphic object (without the character "_"). |
_bt, _ec | Displayed time interval (begin time and end time). |
_case | Input parameter of the INT type (see the table below). |
_subCase | Input parameter of the INT type - specifies the use of the parameter _case (see the table below). |
Description
The picture event is being generated by displayer of the Graph type, whenever the time interval displayed in the displayer is being changed. The parameters _bt and _et represents new time interval. The parameter _case, according to the following table, determines the type of the event, when the time interval changed and the parameter _subCase specifies the use of the parameter _case:
function
value of parameter _case | Event type |
0 | First opening of the graph - immediately after opening the graph, or after calling the |
%HI_SetConnectedObj function. | |
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 function doesn't activate the picture event OnNewDiaTrendTimeInt !!!
Example
The picture event handler for the displayer called Graph with the reference variable _graph.
Blok kódu | ||||
---|---|---|---|---|
| ||||
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 |
Blok kódu | ||||
---|---|---|---|---|
| ||||
IF _subCase = 0 THEN ; return to initial interval |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ELSIF _subCase = 1 THEN ; definition of a new time interval |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENDIF ELSIF _case = 2 THEN ; use of zoom |
Blok kódu | ||||
---|---|---|---|---|
| ||||
IF _subCase = 0 THEN ; destroying zoom ELSIF _subCase = 0 THEN ; use of zoom ENDIF ENDIF END graf_OnNewDiagTrendTimeInt |
Info | ||
---|---|---|
| ||