# Components Behind Containers

**URL:** <https://forum.inductiveautomation.com/t/components-behind-containers/7182>\
**Category:** Ignition\
**Created:** [September 3, 2013, 6:41pm UTC](https://forum.inductiveautomation.com/t/components-behind-containers/7182 "2013-09-03T18:41:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![epsmitas](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@epsmitas](https://forum.inductiveautomation.com/u/epsmitas)\
**Post date:** [September 3, 2013, 6:41pm UTC](https://forum.inductiveautomation.com/t/components-behind-containers/7182/1 "2013-09-03T18:41:44Z")

</div>

I am toggling the “visible” property to display a “containers” contents in a window. Is there any way to prevent “interaction” with components located behind the container ? Thx.

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [September 3, 2013, 9:21pm UTC](https://forum.inductiveautomation.com/t/components-behind-containers/7182/2 "2013-09-03T21:21:13Z")

</div>

You can cover the entire window with your container and set your layout to be anchored on all four sides (it expands with the window). I did this to pop-up a confirmation window as a container with other items you can interact with.

But it doesn’t stop the user from clicking the things behind the container.

However, if you have an event handler for the container and it is on top of the other components, its event will preempt theirs.

Just right click on the container, left click Event Handlers, choose mouse -\> mousePressed on the left, click the Script Editor tab and type:

```auto
pass
```

---

<div class="post-metadata">

**Author:** ![epsmitas](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@epsmitas](https://forum.inductiveautomation.com/u/epsmitas)\
**Post date:** [September 4, 2013, 12:06pm UTC](https://forum.inductiveautomation.com/t/components-behind-containers/7182/3 "2013-09-04T12:06:26Z")

</div>

I knew there was a simple method. Very nice. Thanks adamaustin.
