Navigation: ABC Library Reference > PrintPreviewClass > PrintPreviewClass Methods >====== TakeEvent (process all events:PrintPreviewClass) ====== | |
TakeEvent, VIRTUAL, PROC
The TakeEvent method processes all preview 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:
The Ask method calls the TakeEvent method. The TakeEvent method calls the WindowManager.TakeEvent method, then processes EVENT:CloseWindow, EVENT:Sized and EVENT:AlertKey events for the preview window.
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: WindowManager.Ask