# Modal windows

**URL:** <https://forum.inductiveautomation.com/t/modal-windows/651>\
**Category:** Archived Topics\
**Created:** [April 26, 2008, 10:25pm UTC](https://forum.inductiveautomation.com/t/modal-windows/651 "2008-04-26T22:25:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [April 28, 2008, 9:48pm UTC](https://forum.inductiveautomation.com/t/modal-windows/651/3 "2008-04-28T21:48:09Z")

</div>

Kyle,

Thanks for your help. I was speaking to Travis about another point when I mentioned your idea. He came back with a development to stop access to any controls on the background window while the popup is open.

1. Develop your popup as a maximised window, with all controls in a container with a coloured background.
2. Put the following script in the window’s internalFrameActivated event:

`window = fpmi.gui.getParentWindow(event) 
window.setOpaque(0) 
`  
3. Set the layer of the popup window to a value greater than the background window.

Now when the popup is displayed, you can still see the background window , but you cannot click on any of its controls.

Al

---

_[View the full topic](https://forum.inductiveautomation.com/t/modal-windows/651)._
