Support Forums
Close popup when it loses focus?

I have a popup menu that calls other popup pages, and I want the menu to close after I use it to open a page. Here's my code below. When I open a popup, however, my code closes the menu along with the popup I just opened. Why? How do I fix this?

  If \DisplayManager.CurrPage() != Self(); {Lose focus}
  [
    \DisplayManager.StopPage(Self) { Close window };
  ]
I have a popup menu that calls other popup pages, and I want the menu to close after I use it to open a page. Here's my code below. When I open a popup, however, my code closes the menu along with the popup I just opened. Why? How do I fix this? ```` If \DisplayManager.CurrPage() != Self(); {Lose focus} [ \DisplayManager.StopPage(Self) { Close window }; ] ````
24
0
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft