takeevent_process_accept_loop_event_asciiviewerclass_.htm
Navigation: ABC Library Reference > ASCIIViewerClass > AsciiViewerClass Methods >====== TakeEvent (process ACCEPT loop event:ASCIIViewerClass) ====== | |
TakeEvent( event ), PROC
TakeEvent | Processes an ACCEPT loop event. |
event | An integer constant, variable, EQUATE or expresssion containing the event number. |
The TakeEvent method processes an ACCEPT loop event on behalf of the ASCIIViewerClass object and returns a value indicating whether a CYCLE to the top of the ACCEPT loop is required to properly refresh the display.
Implementation:
The TakeEvent method handles resizing, RIGHT-CLICKS, LEFT-CLICKS, and scrolling events.
A return value of zero (0) indicates no CYCLE is needed; any other return value requires a CYCLE.
Return Data Type: BYTE
Example:
ACCEPT
CASE FIELD()
OF ?AsciiBox
IF ViewerActive
IF Viewer.TakeEvent(EVENT())
CYCLE
END
END
END
END
takeevent_process_accept_loop_event_asciiviewerclass_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1