User Tools

Site Tools


postcompleted_initiates_final_window_processing_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== PostCompleted (initiates final Window processing) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

PostCompleted

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 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

postcompleted_initiates_final_window_processing_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1