OnMouseEnter picture event


Declaration
Global handler:
 ENTRY   OnMouseEnter(IN INT _refId)
 ; script actions
 END  OnMouseEnter

Special handler:
 ENTRY XXX_OnMouseEnter
 ; script actions
 END XXX_OnMouseEnter

Parameters
_refId Required input parameter of INT type for global handler.
XXX Name of the reference variable assigned to graphic object (without the character "_").

Description
The picture event is being generated when the mouse cursor is pointed to the graphic object with the given reference variable.
Example
Special picture event handler:
 
; picture event handler: Pointing the mouse cursor to the graphic object with
 ; the reference variable _List assigned
ENTRY List_OnMouseEnter
  ; actions
 END List_OnMouseEnter

 
Global picture event handler:
 
; picture events handler: Pointing the mouse cursor to
; graphic object with reference variable assigned

ENTRY OnMouseEnter(IN  INT _refId)
; _refId - value of reference variable assigned to graphic object
  IF _refId = _List THEN  ; test that determines the graphic object
                          ; the mouse cursor pointed to
    ; script actions  
  ENDIF
 END OnMouseEnter

Note
If both the handlers are defined in picture script, the global handler will never be called for _refId=_List, because a special handler is already defined.

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .