Navigation: ABC Library Reference > WindowManager > WindowManager Methods >====== TakeEvent (a virtual to process all events:WindowManager) ====== | |
TakeEvent, VIRTUAL, PROC
The TakeEvent method processes all window events and returns a value indicating whether ACCEPT loop processing is complete and should stop. TakeEvent returns Level:Benign to indicate processing of this event should continue normally; it returns Level:Notify to indicate processing is completed for this event and the ACCEPT loop should CYCLE; it returns Level:Fatal to indicate the event could not be processed and the ACCEPT loop should BREAK.
Implementation:
Return values are declared in ABERROR.INC.
The Ask method calls the TakeEvent method.
Return Data Type: BYTE
Example:
WindowManager.Ask PROCEDURE
CODE
IF SELF.Dead THEN RETURN .
CLEAR(SELF.LastInsertedPosition)
ACCEPT
CASE SELF.TakeEvent()
OF Level:Fatal
BREAK
OF Level:Notify
CYCLE !Not as dopey at it looks, it is for 'short-stopping' certain events
END
END
See Also: Ask