I have several windows say W1, W2 etc. Initially my W1 is set visible. Then upon a button-click I issue W1.visible = false and W2.visible = true and this process is repeated for subsequent windows.
However W1 might be re-appearing when I switch from W2 to W3. As front window so even hiding W3. This behavior is different in OSX and Windows but the problem occurs for both platforms. I have tried to get rid of W1 by W1.close and to force other windows to be in front by Wi.show. That is not helping. I am afraid I have a deep misunderstanding somewhere. Please help.