# Making a locked window

**URL:** <https://forum.inductiveautomation.com/t/making-a-locked-window/20723>\
**Category:** Ignition\
**Created:** [November 9, 2018, 6:10pm UTC](https://forum.inductiveautomation.com/t/making-a-locked-window/20723 "2018-11-09T18:10:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schwartzds](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/schwartzds/32/6777_2.png) [@Schwartzds](https://forum.inductiveautomation.com/u/Schwartzds)\
**Post date:** [November 9, 2018, 6:10pm UTC](https://forum.inductiveautomation.com/t/making-a-locked-window/20723/1 "2018-11-09T18:10:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 9, 2018, 6:24pm UTC](https://forum.inductiveautomation.com/t/making-a-locked-window/20723/2 "2018-11-09T18:24:39Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![schenk](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@schenk](https://forum.inductiveautomation.com/u/schenk)\
**Post date:** [November 9, 2018, 6:25pm UTC](https://forum.inductiveautomation.com/t/making-a-locked-window/20723/3 "2018-11-09T18:25:17Z")

</div>

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

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8e95f059fc821919907bd3c82a77860fb1b42019.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 9, 2018, 6:46pm UTC](https://forum.inductiveautomation.com/t/making-a-locked-window/20723/4 "2018-11-09T18:46:55Z")

</div>

Just toggle the `Closeable` property on the top level window object, and Windows → Close All will not affect it:  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/74b5d93c757975e5c70b6f4bcc719a77d84cfed4.png)

---

<div class="post-metadata">

**Author:** ![Schwartzds](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/schwartzds/32/6777_2.png) [@Schwartzds](https://forum.inductiveautomation.com/u/Schwartzds)\
**Post date:** [November 15, 2018, 11:57am UTC](https://forum.inductiveautomation.com/t/making-a-locked-window/20723/5 "2018-11-15T11:57:56Z")

</div>

Thanks all for the great info.
