Hello,
There are difference between CC2014(or previus) and CC2015 at closing window event.
Please see below sample code.
At line 7 on CC2014, w1 window close immediately and then w2 window open.
However on CC2015, w1 window don't close and w2 open at the same time.
We have to close parent window(w1), because monitor the processing status behind the screen.
W1 window disrupt monitoring...
- w1 = new Window('dialog','sample1',[200,100,500,200],{ name:"main"});
- w1.okBtn = w1.add("button",[130,80,225,80+25], "OK!", { name:"ok"});
- w1.okBtn.onClick= this.click;
- w1.show();
- function click(){
- w1.close();
- //~ Monitoring processing status at screen
- w2 = new Window('dialog','sample2',[200,100,500,200]);
- w2.okBtn = w2.add("button",[130,80,225,80+25], "OK!", { name:"ok"});
- w2.show();
- }
Thank you in advance,
Yasuo.