| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > WindowManager > WindowManager Properties >====== CancelAction (response to cancel request) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[batchprocessing formvcrclass is initialized .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[changeaction response to change request .htm|{{btn_next_n.gif|Next page}}]] | | || | | **CancelAction** | **BYTE** | {{blk2blue.jpg|blk2blue.jpg}} 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 initialize the windowmanager object .htm|Init]], [[takecloseevent a virtual to cancel the window .htm|TakeCloseEvent]], [[request database request .htm|Request]], [[response response to database request .htm|Response]]