OnPageChange picture event


Declaration
Global handler:
 ENTRY OnPageChange(IN INT _refId, IN INT _pageNr)
 ; script actions
 END OnPageChange

Special handler:
  ENTRY XXX_OnPageChange(IN INT _pageNr)
 ;   script actions
 END XXX_OnPageChange
Parameters
_refIdParameter of the INT type (required for global handler).
XXXName of Reference variable connected to graphic object (without the character "_").
Description
The picture event is being generated by the displayer of the Browser type when the page is being changed. The value of the parameter _pageNr is the number of current page.
Example

The picture event handler of the displayer of Browser type with reference variable _browser displays new page number.

The Browser displays the structured variable _rec.

Special picture event handler:


ENTRY browser_OnPageChange(IN  INT _pageNr)
   TEXT _msg
   _msg := "Page = " + %IToStr(_pageNr)
   MESSAGE _msg ON _FROM_HIP
 END browser_OnPageChange
 
 BEGIN
   REDIM _rec[10]
 END

Global picture event handler:

ENTRY OnPageChange(IN  INT _refId, IN  INT _pageNr)
   IF _refId = _browser THEN 
    ; script actions
  ENDIF
 END OnPageChange 

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ť .