Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>event()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Event()
Return the most recent event
------------------------------------------------------------------------------

Syntax
Event()   -->   nEvent

Arguments
None.

Returns
An integer corresponding to the EVENT_* values defined in
WINDOWS.CH.

Description
This function is used to find the most recent event that
occurred (as reported by the ChkEvent() function).  It does
not fetch a new event from the event queue.

The source code to this function is provided in CHKEVENT.PRG.

Example
do while ChkEvent() == EVENT_NONE
enddo
ev = Event()
do case
case ev == EVENT_WINSIZE
     // window resized
     newmaxrow = maxrow()
     newmaxcol = maxcol()
case ev == EVENT_KEY
     key = inkey()
// . . .
endcase


See Also: ChkEvent()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson