I have a FileExplorer that I've tagged some extra functionality on so that the preview window loads larger and is resizable. However, when I close this window, it is not destroyed and continues to lurk in the background. I want to destroy it so that if I go to open another window, that window will be the active one and pick up where the previous one left off.
Here is the code I am using for the extra properties, found in another thread:
oWindowManager = oExplorer.get_windowManager();
previewWindow = oWindowManager.getActiveWindow();
// Some timeout is required in order to allow the window to become active
// destroy code will go here I hope?
This is wired to the OnClientFileOpen event on my FileExplorer.