| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > TextWindowClass > TextWindowClass Methods >====== TakeAccepted (process window controls) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[kill shutdown textwindow object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[toolbarclass.htm|{{btn_next_n.gif|Next page}}]] | | || **TakeAccepted, PROC, DERIVED** {{blk2blue.jpg|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:**     [[setresponse ok or cancel the window .htm|WindowManager.SetReponse]]