Making a locked window

I am working on a project and users are going up to the toolbar and selecting close all windows. When this happens they have to log out and back in to get windows to appear. Is there a way that you can make one window unable to be closed? I have tried in the properties but the window still can be closed.

I’m not seeing it, but I’m also using tabbed navigation, so that may have something to do with it…

You may be able to use a Client Timer Script to check the number of open windows:

# Completely untested script
w = system.gui.getOpenedWindows()
if len(w) == 0:
  system.nav.openWindow('WindowName')

If you check “Hide Windows Menu” in the project properties, that option will disappear from the menu bar.

Just toggle the Closeable property on the top level window object, and Windows → Close All will not affect it:

4 Likes

Thanks all for the great info.