# Disable/Lock all Main Window click events while pop-up is open

**URL:** <https://forum.inductiveautomation.com/t/disable-lock-all-main-window-click-events-while-pop-up-is-open/28985>\
**Category:** Ignition\
**Created:** [October 10, 2019, 12:04pm UTC](https://forum.inductiveautomation.com/t/disable-lock-all-main-window-click-events-while-pop-up-is-open/28985 "2019-10-10T12:04:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam.hellyer](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@adam.hellyer](https://forum.inductiveautomation.com/u/adam.hellyer)\
**Post date:** [October 10, 2019, 12:04pm UTC](https://forum.inductiveautomation.com/t/disable-lock-all-main-window-click-events-while-pop-up-is-open/28985/1 "2019-10-10T12:04:36Z")

</div>

The goal is that I would still be able to see what’s going on in the main window, but have a pop-up window that locks all activity on the main window until it’s closed.

I assumed the easiest way to do this would be with a 50% transparent rectangle or container overlaying the main window that becomes visible when the pop-up opens but when I tried that I was able to click through those components to the buttons behind it.

Is there a way to disable click through or am I going to need to code in disabling all components and nested components on the main window?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 10, 2019, 12:25pm UTC](https://forum.inductiveautomation.com/t/disable-lock-all-main-window-click-events-while-pop-up-is-open/28985/2 "2019-10-10T12:25:20Z")

</div>

Take a look at this thread, especially Kyle's contributions:

> [@Modal Pop-Up How-To?](http://forum.inductiveautomation.com/t/modal-pop-up-how-to/15211/9):
>
> All containers allow mouse clicks through by default. Easiest way to disable that is on the container, In the Mouse Clicked Event put “pass” in it.

---

<div class="post-metadata">

**Author:** ![adam.hellyer](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@adam.hellyer](https://forum.inductiveautomation.com/u/adam.hellyer)\
**Post date:** [October 10, 2019, 12:40pm UTC](https://forum.inductiveautomation.com/t/disable-lock-all-main-window-click-events-while-pop-up-is-open/28985/3 "2019-10-10T12:40:13Z")

</div>

Thanks! I was looking around but wasn’t searching for modal, it’s exactly what I needed
