Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnTimer picture event
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnTimer
; script actions
END OnTimer |
Parameters
No parameters.
Description
The picture event is being generated by the picture every 125 [ms] if so-called timer is enabled. After opening the picture, the generation of the event (the function timer) is disabled.
Generation of the picture event OnTimer can be enabled/disabled by calling the function %HI_TimerEnable function.
Blok kódu | ||||
---|---|---|---|---|
| ||||
; picture event handler: OnTimer |
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnTimer |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; script actions END OnTimer |
To ensure the picture event generation, it is required to call the function %HI_TimerEnable function. The function can be also called within the handler of other picture event (e.g. pressing the mouse button), or within the initialisation part of the script:
Example
Blok kódu | ||||
---|---|---|---|---|
| ||||
BEGIN %HI_TimerEnable(@TRUE) END |
Note
The picture event OnTimer is generated every 125 [ms]. Therefore it is required that the duration of the picture event handler would be as short as possible, absolutely not longer than 250 [ms]. Otherwise, the system could be overloaded and then the process D2000 HI process will be non-functional.
Info | ||
---|---|---|
| ||