| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > WindowManager > WindowManager Methods >====== PostCompleted (initiates final Window processing) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[open a virtual to execute on event openwindow windowmanager .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[primefields a virtual to prime form fields .htm|{{btn_next_n.gif|Next page}}]] | | || **PostCompleted** {{blk2blue.jpg|blk2blue.jpg}} The **PostCompleted **method initiates final or closedown processing for the window. This process is typically initiated with an "OK" button. The actual processing depends on the type of window defined. **Implementation:** The TakeAccepted method calls the PostCompleted method. The ToolbarUpdateClass.TakeEvent also calls PostCompleted. The PostCompleted method initiates AcceptAll mode for update Forms (see [[select select next control to process .htm|SELECT]]// //in the //Language Reference// for more information) and POSTs an EVENT:Completed for all other windows. **Example:** **WindowManager.TakeAccepted PROCEDURE** **I  LONG,AUTO** **A  SIGNED,AUTO** ** CODE** ** A = ACCEPTED()** ** IF ~SELF.Toolbar &= NULL** **  SELF.Toolbar.TakeEvent(SELF.VCRRequest,SELF)** **   IF A = Toolbar:History** **    SELF.RestoreField(FOCUS())** **   END** ** END** ** LOOP I = 1 TO RECORDS(SELF.Buttons)** **  GET(SELF.Buttons,I)** **   IF SELF.Buttons.Control = A** **    SELF.SetResponse(SELF.Buttons.Action)** **    RETURN Level:Notify** **   END** ** END** ** IF SELF.OkControl AND SELF.OkControl = A** **  SELF.PostCompleted** ** END** ** RETURN Level:Benign** **See Also:**     [[okcontrol window acceptance control ok button .htm|OKControl]], [[takeaccepted a virtual to process event accepted windowmanager .htm|TakeAccepted]]