Cannot Close Window

I create a new window with the following code.
CodesWindow = wins.createWindow(
{
id:“CodesWindow”,
x:30,
y:55,
width:200,
height:300,
center:true,
onClose:function()
{
sb.setText(“”);
return;
}
})

When I include anything in the onClose function the window will not close when clicking on the close button.
Using pro version 3.5

Hello
What is your “sb” object?

It is the status bar. Trying to set the text.

I believe I have found the answer. I needed to add “return true;” to the function.

So, we need completed demo to test it and help you.
docs.dhtmlx.com/doku.php?id=othe … leted_demo
Please, create it and attach.

hi

onclose event is cancelable, you need “return true” to allow closing