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.
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:
pass
I knew there was a simple method. Very nice. Thanks adamaustin.