CancelAction (response to cancel request)

Top  Previous  Next

 

 

CancelAction

BYTE

The CancelAction property indicates the WindowManager action to take when the end user "Cancels" the window with changes pending. Valid actions are:

Cancel:Cancel

immediate abandon (no confirmation)

Cancel:Save

immediate save (no confirmation)

Cancel:Save+Cancel:Query

offer to save or abandon

Cancel:Cancel+Cancel:Query

offer to resume editing or abandon

Implementation:

The Init method sets the CancelAction property to Cancel:Save + Cancel:Query. The TakeCloseEvent method carries out the action specified by the CancelAction property.

CancelAction EQUATEs are declared in ABWINDOW.INC as follows:

   ITEMIZE,PRE(Cancel)

Cancel  EQUATE(0)

Save    EQUATE(1)

Query   EQUATE(2)

   END

See Also:     Init, TakeCloseEvent, Request, Response