Navigation: ABC Library Reference > WindowManager > WindowManager Methods >====== PostCompleted (initiates final Window processing) ====== | ![]() ![]() |
PostCompleted
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// 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, TakeAccepted





