User Tools

Site Tools


takeevent_process_all_events_printpreviewclass_.htm
Navigation:  ABC Library Reference > PrintPreviewClass > PrintPreviewClass Methods >====== TakeEvent (process all events:PrintPreviewClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeEvent, VIRTUAL, PROC

blk2blue.jpg

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

takeevent_process_all_events_printpreviewclass_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1