Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
OnMouseMove picture event
Declaration
Global handler:
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnMouseMove(IN INT _refId, IN INT _X, IN INT _Y) ; script actions END OnMouseMove |
Special handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY XXX_OnMouseMove(IN INT _X, IN INT _Y) |
Blok kódu | ||||
---|---|---|---|---|
| ||||
; script actions END XXX_OnMouseMove |
Parameters
_refId | Parameter of the INT type (required for global handler). |
XXX | Name of Reference variable connected to graphic object (without the character "_"). |
_Y | Parameter of the INT type. |
_Y | Parameter of the INT type. |
Description
The picture event sends information about movement of mouse pointer in picture for script. When the mouse pointer moves over the graphic objects, windows controls and displayers Alarm, Browser, Graph and Logging, x, y coordinates, when moving over the graphic objects, correspond to the place in the picture. Otherwise, they correspond to the position in the inserted window control.
The parameter _refId is used for graphic objects with defined Reference variable other than 0. So it It is, therefore, possible to use the special event handler. For the graphic object with no defined Reference variable, it is required to use the global event handler and the parameter _refId will be 0. Also when the user press the mouse button above the picture (not above graphic object).
Example
Global picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY OnMouseMove(IN INT _refId, IN INT _xPos, IN INT _yPos) END OnMouseMove |
Special picture event handler:
Blok kódu | ||||
---|---|---|---|---|
| ||||
ENTRY TV_OnMouseMove(IN INT _xPos, IN INT _yPos) END TV_OnMouseMove |
Info | ||
---|---|---|
| ||