AnsweredAssumed Answered

How to handle document's close button click event?

Question asked by Tayfun Çetin on Apr 19, 2018
Latest reply on Apr 19, 2018 by Taus Moller

We are trying to handle document close event. When document closed if has some change Save as Dialog raised.

When try to close document by click on close button of document, Destroy event has raised (We have some functions by raising destroy event).

Before of rasing Destroy event Save as Dialog raise and ask about save document. We want to skip Saved as Dialog form.

For this added SWApplication.CloseAllDocuments(true) to the project but Save Dialog raised again.


I think we put SWApplication.CloseAllDocuments(true) in wrong place.

Would any body help us please, where should i put "Close All Documents" to close Save Dialog, before raising of Destroy event?