Navigation:  ABC Library Reference > TextWindowClass > TextWindowClass Methods >====== TakeAccepted (process window controls) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TakeAccepted, PROC, DERIVED

blk2blue.jpg

The TakeAccepted method processes EVENT:Accepted for the OK and Cancel button controls. TakeAccepted returns Level:Benign to indicate processing of this event should continue normally; Level:Notify is returned to indicate processing is complete for this event and the ACCEPT loop should CYCLE; Level:Fatal is returned to indicate the event could not be processed and the ACCEPT loop should BREAK.

Implementation:

The TakeAccepted method calls the WindowManager.SetResponse to register the methods' result (complete or cancelled) and triggers the normal procedure shutdown.

Return Data Type:     BYTE

See Also:     WindowManager.SetReponse