dhtmlXWindows - onClose

Hi,



I can cancel the event onClose in dhtmlXWindows?

It is destroyed after close?



Best regards,



CHW

In current version of dhtmlxWindow “onclose” event can’t be blocked

>>It is destroyed after close?
yes, it fully destroyed

You can modify existing code to made event blockable

dhtmlxwindow.js

if (win.checkEvent(“onClose”)) {
            win.callEvent(“onClose”, [win]);
        } else {
            this.callEvent(“onClose”, [win]);
        }

can be replaced with

if (win.checkEvent(“onClose”)) {
            if (!win.callEvent(“onClose”, [win])) return;
        } else {
            if(!this.callEvent(“onClose”, [win])) return;
        }