User Tools

Site Tools


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

TakeEvent, VIRTUAL, PROC

blk2blue.jpg

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

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