Hi there,
Trying to figure out how to kill off a palette (entirely from memory).
Running the code below - first alert is null, the window object does not exist.
When it's run a second time it alerts [object] as the palette remains in memory etc.
So the close() method seems to just hide a palette, how to kill it completely?
What is the difference between .close() and .hide() is essentially my question?
Thanks.!
Alan.
//=======================================================
var wName = "tester"
alert(Window.find(wName ))
var w = new Window("palette", wName , undefined, {name: wName });
w.preferredSize=[250,250];
var c = w.add("button",undefined,"kill window.");
c.onClick=function(){this.parent.close();}
w.show();
//=======================================================