Hi,
I would like to disable background user interaction when a popup is open, similar to how we use the 'modal' property in Perspective.
Any ideas to do this?
Hi,
I would like to disable background user interaction when a popup is open, similar to how we use the 'modal' property in Perspective.
Any ideas to do this?
Perspective or Vision? You've tagged the question as both.
In general, you make the view modal. See the documentation.
Sorry, i have updated now,
I need it in vision.
Looks like I missed this question. I can imagine several approaches that would work such as using a unifying boolean value on a client tag or custom property that the UI components could bind their enabled properties to.
...but by now [two months later], I imagine you've solved this. How did you end up doing it?
Vision also has modal popups.
How do you make the popup modal in Vision?
Most of the system.gui.(popup) options are gui locking.
Hmm. Misremembered.
I recall hacking a window instance by reparenting into a JDialog. It wasn't trivial.
Here’s what I did:
Whenever a popup opens, I enable a client tag and set the background transparency to a slightly greyish tone. For any background functionality, I first check if the client tag is enabled; if it is, I ignore the action. When the popup closes, I disable the tag.