| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PrintPreviewClass > PrintPreviewClass Methods >====== TakeAccepted (process EVENT:Accepted events:PrintPreviewClass) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[syncimagequeue sync image queue with pagestoprint .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[takeevent process all events printpreviewclass .htm|{{btn_next_n.gif|Next page}}]] | | || **TakeAccepted, VIRTUAL, PROC** {{blk2blue.jpg|blk2blue.jpg}} The **TakeAccepted **method processes EVENT:Accepted events for all the controls on the preview window, then returns a value indicating whether window ACCEPT loop processing is complete and should stop. TakeAccepted 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 TakeEvent method calls the TakeAccepted method. The TakeAccepted method calls the WindowManager.TakeAccepted method, then processes EVENT:Accepted events for all the controls on the preview window, including zoom controls, print button, navigation controls, thumbnail configuration controls, etc. **Return Data Type:     **BYTE **Example:** **MyWindowManager.TakeEvent PROCEDURE** **RVal BYTE(Level:Benign)** **I    USHORT,AUTO** **  CODE** ** IF ~FIELD()** **  RVal = SELF.TakeWindowEvent()** **  IF RVal THEN RETURN RVal.** ** END** ** CASE EVENT()** ** OF EVENT:Accepted;   RVal = SELF.TakeAccepted()** ** OF EVENT:Rejected;   RVal = SELF.TakeRejected()** ** OF EVENT:Selected;   RVal = SELF.TakeSelected()** ** OF EVENT:NewSelection; RVal = SELF.TakeNewSelection()** ** OF EVENT:Completed;   RVal = SELF.TakeCompleted()** ** OF EVENT:CloseWindow OROF EVENT:CloseDown** **  RVal = SELF.TakeCloseEvent()** ** END** ** IF RVal THEN RETURN RVal.** ** IF FIELD()** **  RVal = SELF.TakeFieldEvent()** ** END** ** RETURN RVal** **See Also:     **[[takeevent process all events printpreviewclass .htm|TakeEvent]], [[takeevent a virtual to process all events windowmanagerclass .htm|WindowManager.TakeEvent]]