Hi.
I'm working with NW7.0.There's some problem with using a model window.
I have 2 component,Comp1 and Comp2.
The main window belongs to Comp1 and the popup window belongs to Comp2.
Comp1 add the useage of Comp2,and create a window "Win2" with Comp2's interface window embeded.
In Comp1 I write the create and hide method for popup "Win2".
I want to write some initialize code for the popup window when it's displayed everytime.
The first time when popup window shows can trigger the wdDoInit method correctly.
But when I close the popup window and open it again,the wdDoInit method wouldn't be trigger any more.
then I try to set the popup view's property Life Span to "when visible",not works.
then I try to write code in the hide popup method: win.hide(); win.destroyInstance(); not works.
Seems the window's instance can't be destroyed be the win.destroyInstance()
then I give up wdDoInit() and try to fire a event in popup window's interface view's Default plugin,but the default plugin method can't be trigger at all,even at the first time when the popup window shows.
can any body give me some suggustion? without write code in wdDoViewModify().
Thanks.